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