mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +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
|
||||
ls_run=$(ls /run)
|
||||
# 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'
|
||||
# /sbin/init --version == init (upstart 1.12.1)
|
||||
init_version=$( get_de_app_version 'init' 'upstart' '3' )
|
||||
|
|
Loading…
Reference in a new issue