rc.subr (242184) | rc.subr (243184) |
---|---|
1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ | 1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ |
2# $FreeBSD: head/etc/rc.subr 242184 2012-10-27 19:09:09Z hrs $ | 2# $FreeBSD: head/etc/rc.subr 243184 2012-11-17 18:11:10Z hrs $ |
3# 4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 1708 unchanged lines hidden (view full) --- 1719 eval _rc_cache_kern_features_$1=0 1720 return 0 1721 else 1722 eval _rc_cache_kern_features_$1=1 1723 return 1 1724 fi 1725} 1726 | 3# 4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 1708 unchanged lines hidden (view full) --- 1719 eval _rc_cache_kern_features_$1=0 1720 return 0 1721 else 1722 eval _rc_cache_kern_features_$1=1 1723 return 1 1724 fi 1725} 1726 |
1727# check_namevarlist var 1728# Return "0" if ${name}_var is reserved in rc.subr. 1729 1730_rc_namevarlist="program chroot chdir flags fib nice user group groups" 1731check_namevarlist() 1732{ 1733 local _v 1734 1735 for _v in $_rc_namevarlist; do 1736 case $1 in 1737 $_v) return 0 ;; 1738 esac 1739 done 1740 1741 return 1 1742} 1743 |
|
1727# _echoonce var msg mode 1728# mode=0: Echo $msg if ${$var} is empty. 1729# After doing echo, a string is set to ${$var}. 1730# 1731# mode=1: Echo $msg if ${$var} is a string with non-zero length. 1732# 1733_echoonce() 1734{ --- 14 unchanged lines hidden --- | 1744# _echoonce var msg mode 1745# mode=0: Echo $msg if ${$var} is empty. 1746# After doing echo, a string is set to ${$var}. 1747# 1748# mode=1: Echo $msg if ${$var} is a string with non-zero length. 1749# 1750_echoonce() 1751{ --- 14 unchanged lines hidden --- |