mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
small bug fix for arch linux, added fallback test for systemd version
This commit is contained in:
parent
e7ec0a9fea
commit
5ef2329092
5
inxi
5
inxi
|
@ -5426,7 +5426,12 @@ get_init_data()
|
||||||
# more data may be needed for other init systems.
|
# more data may be needed for other init systems.
|
||||||
if [[ -e /proc/1/comm && -n $( grep -s 'systemd' /proc/1/comm ) ]];then
|
if [[ -e /proc/1/comm && -n $( grep -s 'systemd' /proc/1/comm ) ]];then
|
||||||
init_type='systemd'
|
init_type='systemd'
|
||||||
|
if [[ -n $( type -p systemd ) ]];then
|
||||||
init_version=$( get_de_app_version 'systemd' '^systemd' '2' )
|
init_version=$( get_de_app_version 'systemd' '^systemd' '2' )
|
||||||
|
fi
|
||||||
|
if [[ -z $init_version && -n $( type -p systemctl )]];then
|
||||||
|
init_version=$( get_de_app_version 'systemctl' '^systemd' '2' )
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
ls_run=$(ls /run)
|
ls_run=$(ls /run)
|
||||||
# note: upstart-file-bridge.pid upstart-socket-bridge.pid upstart-udev-bridge.pid
|
# note: upstart-file-bridge.pid upstart-socket-bridge.pid upstart-udev-bridge.pid
|
||||||
|
|
Loading…
Reference in a new issue