mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.43.1
This commit is contained in:
parent
fa21b1e200
commit
6131a2d28f
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=2.43.0
|
||||
version=2.43.1
|
||||
date="22/11/2017"
|
||||
projet="simpledeb"
|
||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||
|
@ -1959,7 +1959,7 @@ fi_systeme(){ # 22/11/2017
|
|||
bootImage="$(gawk '/BOOT_IMAGE/ {print $1}' /proc/cmdline)"
|
||||
bootImage="$(gawk '{print $1}{i=2; while (i <= NF-1) { print " ",$i; i++}}' /proc/cmdline)"
|
||||
initDaemon="$(ps -p1 | gawk 'FNR==2 {print $4}')" #? ps -ax | gawk '$1==1' ou ps -p1 | gawk '$1==1'
|
||||
[ $( f__which systemd )] && initDaemon=$( systemd --version )
|
||||
[ $( f__which systemd ) ] && initDaemon=$( systemd --version )
|
||||
initDaemon=${initDaemon%%[[:space:]]+*}
|
||||
initDaemon=${initDaemon/systemd/systemd version}
|
||||
[ "$ENV_SSH" ] && serverX="n/a (ssh)" || serverX="$XDG_SESSION_TYPE" # normalement retourne wayland
|
||||
|
|
Loading…
Reference in New Issue