mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
A tiny change, that should impact almost nobody, this is included as 2.2.0, I changed the order
that runit/sysvinit are tested for, a test case showed up where runit had been installed as a dependency but was not the init system, so that was wrong output. Moved runit after sysvinit case in tests.
This commit is contained in:
parent
b4a34c0c90
commit
99d4b0292e
10
inxi
10
inxi
|
@ -5933,11 +5933,6 @@ get_init_data()
|
|||
init_type='launchd'
|
||||
# / launchd/ version.plist /etc/launchd.conf
|
||||
# init_version=$( get_program_version 'Launchd' '^Launchd' '4' )
|
||||
# missing data:
|
||||
# http://smarden.org/runit/sv.8.html
|
||||
elif [[ -e /sbin/runit-init || -e /etc/runit || -n $( type -p sv ) ]];then
|
||||
init_type='runit' # lower case
|
||||
# no data on version yet
|
||||
elif [[ -f /etc/inittab ]];then
|
||||
init_type='SysVinit'
|
||||
if type -p strings &>/dev/null;then
|
||||
|
@ -5946,6 +5941,11 @@ get_init_data()
|
|||
if [[ -n $strings_init_version ]];then
|
||||
init_version=$( gawk '{print $2}' <<< "$strings_init_version" )
|
||||
fi
|
||||
# missing data:
|
||||
# http://smarden.org/runit/sv.8.html
|
||||
elif [[ -e /sbin/runit-init || -e /etc/runit || -n $( type -p sv ) ]];then
|
||||
init_type='runit' # lower case
|
||||
# no data on version yet
|
||||
# freebsd at least
|
||||
elif [[ -f /etc/ttys ]];then
|
||||
init_type='init (bsd)'
|
||||
|
|
Loading…
Reference in a new issue