NetBSD port
This commit is contained in:
committed by
Jon Trulson
parent
a4f9413950
commit
2712d5f787
@@ -216,6 +216,14 @@ CleanDaemons()
|
||||
sleep 2
|
||||
fi
|
||||
elif [ "$PLATFORM" = "freebsd" ]
|
||||
then
|
||||
ps axo pid,comm | grep $i > /tmp/tmppsout
|
||||
if [ -s /tmp/tmppsout ]
|
||||
then
|
||||
awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
|
||||
sleep 2
|
||||
fi
|
||||
elif [ "$PLATFORM" = "netbsd" ]
|
||||
then
|
||||
ps axo pid,comm | grep $i > /tmp/tmppsout
|
||||
if [ -s /tmp/tmppsout ]
|
||||
@@ -264,6 +272,9 @@ RestartInetd()
|
||||
elif [ "$PLATFORM" = "freebsd" ]
|
||||
then
|
||||
/etc/rc.d/inetd onestart
|
||||
elif [ "$PLATFORM" = "netbsd" ]
|
||||
then
|
||||
/etc/rc.d/inetd start >/dev/null
|
||||
elif [ "$PLATFORM" = "linux" ]
|
||||
then
|
||||
/etc/init.d/openbsd-inetd start >/dev/null 2>&1
|
||||
@@ -578,6 +589,10 @@ XCOMM
|
||||
then
|
||||
PLATFORM="openbsd"
|
||||
PLATFORM_SCRIPT_DIR="openbsd"
|
||||
elif [ $BUILDSYSTEM = "NetBSD" ];
|
||||
then
|
||||
PLATFORM="netbsd"
|
||||
PLATFORM_SCRIPT_DIR="netbsd"
|
||||
else # Build system = HP
|
||||
PLATFORM=hp-ux
|
||||
PLATFORM_SCRIPT_DIR=hp
|
||||
|
||||
Reference in New Issue
Block a user