Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 14:57:48 -0500
From:      Ed Maste <emaste@freebsd.org>
To:        freebsd-rc@freebsd.org
Subject:   NetBSD compat shims in rc.subr
Message-ID:  <20100125195748.GA30798@sandvine.com>

next in thread | raw e-mail | index | archive | help
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
 #	---------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100125195748.GA30798>