Remove vestigial NetBSD compatibility shim.
This commit is contained in:
parent
49e232f2c9
commit
2b084c6a0e
12
etc/rc.subr
12
etc/rc.subr
@ -52,22 +52,12 @@ _rc_subr_loaded="YES"
|
||||
|
||||
SYSCTL="/sbin/sysctl"
|
||||
SYSCTL_N="${SYSCTL} -n"
|
||||
CMD_OSTYPE="${SYSCTL_N} kern.ostype"
|
||||
OSTYPE=`${CMD_OSTYPE}`
|
||||
SYSCTL_W="${SYSCTL}"
|
||||
ID="/usr/bin/id"
|
||||
IDCMD="if [ -x $ID ]; then $ID -un; fi"
|
||||
PS="/bin/ps -ww"
|
||||
JID=`$PS -p $$ -o jid=`
|
||||
|
||||
case ${OSTYPE} in
|
||||
FreeBSD)
|
||||
SYSCTL_W="${SYSCTL}"
|
||||
;;
|
||||
NetBSD)
|
||||
SYSCTL_W="${SYSCTL} -w"
|
||||
;;
|
||||
esac
|
||||
|
||||
#
|
||||
# functions
|
||||
# ---------
|
||||
|
Loading…
Reference in New Issue
Block a user