Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 12:46:05 -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:  <4B5E030D.8020506@FreeBSD.org>
In-Reply-To: <4B5E02A3.4050708@FreeBSD.org>
References:  <20100125195748.GA30798@sandvine.com> <4B5E02A3.4050708@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Oh, one caveat JIC, please grep through /etc and make sure the variables
you're removing aren't used by something.

Doug


On 1/25/2010 12:44 PM, Doug Barton wrote:
> 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?4B5E030D.8020506>