mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
small change in upstart detection, picked a more robust method
This commit is contained in:
parent
aca844c7d8
commit
e7ec0a9fea
3
inxi
3
inxi
|
@ -5430,7 +5430,8 @@ get_init_data()
|
||||||
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
|
||||||
if [[ -n $( grep 'upstart' <<< "$ls_run" ) ]];then
|
# /sbin/init --version == init (upstart 1.12.1)
|
||||||
|
if [[ -n $( /sbin/init --version 2>/dev/null | grep 'upstart' ) ]];then
|
||||||
init_type='Upstart'
|
init_type='Upstart'
|
||||||
# /sbin/init --version == init (upstart 1.12.1)
|
# /sbin/init --version == init (upstart 1.12.1)
|
||||||
init_version=$( get_de_app_version 'init' 'upstart' '3' )
|
init_version=$( get_de_app_version 'init' 'upstart' '3' )
|
||||||
|
|
Loading…
Reference in a new issue