From 8b6730b6275cd883d533f5b9443f43a705f8d09e Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 2 May 2014 01:12:43 +0000 Subject: [PATCH] bsd fixes --- inxi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index 81729b9..dcaa04d 100755 --- a/inxi +++ b/inxi @@ -5898,9 +5898,9 @@ get_init_data() # epoch version == Epoch Init System 1.0.1 "Sage" init_version=$( get_program_version 'epoch' '^Epoch' '4' ) elif type -p launchctl &>/dev/null;then - init_type='Launchctl' - # epoch version == Epoch Init System 1.0.1 "Sage" - # init_version=$( get_program_version 'Launchctl' '^Launchctl' '4' ) + 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 @@ -6005,7 +6005,9 @@ get_kernel_version() local kernel_version='' ksplice_kernel_version='' 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 ksplice_kernel_version=$( uptrack-uname -rm ) if [[ $kernel_version != $ksplice_kernel_version ]];then