mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bsd fixes
This commit is contained in:
parent
1dcc122056
commit
8b6730b627
10
inxi
10
inxi
|
@ -5898,9 +5898,9 @@ get_init_data()
|
||||||
# epoch version == Epoch Init System 1.0.1 "Sage"
|
# epoch version == Epoch Init System 1.0.1 "Sage"
|
||||||
init_version=$( get_program_version 'epoch' '^Epoch' '4' )
|
init_version=$( get_program_version 'epoch' '^Epoch' '4' )
|
||||||
elif type -p launchctl &>/dev/null;then
|
elif type -p launchctl &>/dev/null;then
|
||||||
init_type='Launchctl'
|
init_type='launchd'
|
||||||
# epoch version == Epoch Init System 1.0.1 "Sage"
|
# / launchd/ version.plist /etc/launchd.conf
|
||||||
# init_version=$( get_program_version 'Launchctl' '^Launchctl' '4' )
|
# init_version=$( get_program_version 'Launchd' '^Launchd' '4' )
|
||||||
# missing data:
|
# missing data:
|
||||||
# http://smarden.org/runit/sv.8.html
|
# http://smarden.org/runit/sv.8.html
|
||||||
elif [[ -e /sbin/runit-init || -e /etc/runit || -n $( type -p sv ) ]];then
|
elif [[ -e /sbin/runit-init || -e /etc/runit || -n $( type -p sv ) ]];then
|
||||||
|
@ -6005,7 +6005,9 @@ get_kernel_version()
|
||||||
local kernel_version='' ksplice_kernel_version=''
|
local kernel_version='' ksplice_kernel_version=''
|
||||||
|
|
||||||
kernel_version=$( uname -rm )
|
kernel_version=$( uname -rm )
|
||||||
|
if [[ $BSD_VERSION == 'darwin' ]];then
|
||||||
|
kernel_version="Darwin $kernel_version"
|
||||||
|
fi
|
||||||
if [[ -n $( type -p uptrack-uname ) && -n $kernel_version ]];then
|
if [[ -n $( type -p uptrack-uname ) && -n $kernel_version ]];then
|
||||||
ksplice_kernel_version=$( uptrack-uname -rm )
|
ksplice_kernel_version=$( uptrack-uname -rm )
|
||||||
if [[ $kernel_version != $ksplice_kernel_version ]];then
|
if [[ $kernel_version != $ksplice_kernel_version ]];then
|
||||||
|
|
Loading…
Reference in a new issue