Enhancements for DragonFly BSD

This commit is contained in:
mboelen 2014-12-05 17:11:59 +01:00
parent 3802a934c6
commit dbf9bfd173
1 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@
Register --test-no BOOT-5104 --weight L --network NO --description "Determine service manager" Register --test-no BOOT-5104 --weight L --network NO --description "Determine service manager"
if [ ${SKIPTEST} -eq 0 ]; then if [ ${SKIPTEST} -eq 0 ]; then
case ${OS} in case ${OS} in
Linux) "Linux")
if [ -f /proc/1/cmdline ]; then if [ -f /proc/1/cmdline ]; then
FILE=`cat /proc/1/cmdline` FILE=`cat /proc/1/cmdline`
if [ -L ${FILE} ]; then if [ -L ${FILE} ]; then
@ -95,7 +95,7 @@
if [ -f /usr/bin/init-openrc ]; then SERVICE_MANAGER="openrc"; fi if [ -f /usr/bin/init-openrc ]; then SERVICE_MANAGER="openrc"; fi
fi fi
;; ;;
NetBSD) "DragonFly"|"NetBSD")
if [ -x /sbin/init -a -d /etc/rc.d -a -f /etc/rc ]; then if [ -x /sbin/init -a -d /etc/rc.d -a -f /etc/rc ]; then
SERVICE_MANAGER="bsdrc" SERVICE_MANAGER="bsdrc"
fi fi
@ -634,9 +634,9 @@
fi fi
;; ;;
MacOS) DragonFly|MacOS)
if [ ! "${SYSCTLBINARY}" = "" ]; then if [ ! "${SYSCTLBINARY}" = "" ]; then
FIND=`${SYSCTLBINARY} kern.boottime | awk '{ print $5 }' | sed -e 's/,//'` FIND=`${SYSCTLBINARY} kern.boottime | awk '{ print $5 }' | sed -e 's/,//' | grep "[0-9]"`
else else
Display --indent 2 --text "- Checking uptime" --result SKIPPED --color YELLOW Display --indent 2 --text "- Checking uptime" --result SKIPPED --color YELLOW
ReportException "${TEST_NO}:4" "No uptime test available for this operating system (sysctl missing)" ReportException "${TEST_NO}:4" "No uptime test available for this operating system (sysctl missing)"