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
|
||||
|
||||
@@ -8,11 +8,11 @@ export SYSTYPE=bsd4.3
|
||||
# where it is not necessary to run nroff on the man page sources.
|
||||
|
||||
|
||||
# Put "/etc" in the path
|
||||
# Put "/etc", "/sbin" and "/usr/sbin" in the path
|
||||
# because this is where "chown" appears on bsd4.3 systems (i.e. apollo).
|
||||
# Put "/usr/apollo/bin" on the path to access "chacl" on apollo systems.
|
||||
|
||||
export PATH=":/etc:$PATH:/usr/apollo/bin:"
|
||||
export PATH=":/etc:/sbin:/usr/sbin:$PATH:/usr/apollo/bin:"
|
||||
typeset STRIP=""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user