bsd fixes

This commit is contained in:
inxi-svn 2014-05-02 01:12:43 +00:00
parent 1dcc122056
commit 8b6730b627

10
inxi
View file

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