NetBSD compat shims in rc.subr
Ed Maste
emaste at freebsd.org
Mon Jan 25 20:09:51 UTC 2010
There's a vestigial bit of NetBSD compat shim in rc.subr that I'd
like to clean up; any objections to the patch below?
Index: etc/rc.subr
===================================================================
--- etc/rc.subr (revision 202731)
+++ etc/rc.subr (working copy)
@@ -52,22 +52,12 @@
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
# ---------
More information about the freebsd-rc
mailing list