Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 12:44:19 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Ed Maste <emaste@freebsd.org>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: NetBSD compat shims in rc.subr
Message-ID:  <4B5E02A3.4050708@FreeBSD.org>
In-Reply-To: <20100125195748.GA30798@sandvine.com>
References:  <20100125195748.GA30798@sandvine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
No objection. It's been "on the list" for a long time, never got around
to actually doing something about it. :)


Doug


On 1/25/2010 11:57 AM, Ed Maste wrote:
> 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
>  #	---------
> _______________________________________________
> freebsd-rc@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-rc
> To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org"
> 



-- 

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/

	Computers are useless. They can only give you answers.
			-- Pablo Picasso




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