NetBSD compat shims in rc.subr

Doug Barton dougb at FreeBSD.org
Mon Jan 25 20:46:07 UTC 2010


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 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-rc
>> To unsubscribe, send any mail to "freebsd-rc-unsubscribe at 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



More information about the freebsd-rc mailing list