From e7ec0a9fea17a9828c9adeac7dc558cffb8b32b0 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 13 Mar 2014 00:34:39 +0000 Subject: [PATCH] small change in upstart detection, picked a more robust method --- inxi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index e00e640..26710e9 100755 --- a/inxi +++ b/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' )