small change in upstart detection, picked a more robust method

This commit is contained in:
inxi-svn 2014-03-13 00:34:39 +00:00
parent aca844c7d8
commit e7ec0a9fea

3
inxi
View file

@ -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' )