cvs commit: src/etc/rc.d ppp src/share/man/man5 rc.conf.5

Bjoern A. Zeeb bz at FreeBSD.org
Sun Apr 6 17:00:08 UTC 2008


On Fri, 28 Mar 2008, Brooks Davis wrote:

> brooks      2008-03-28 07:57:52 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    etc/rc.d             ppp
>    share/man/man5       rc.conf.5
>  Log:
>  Add support for hardwiring ppp sessions to particular devices with new
>  per-profile variables of the form ppp_<profile>_unit.  No ppp_unit
>  variable is supported since tying the same unit to more than one profile
>  won't work.
>
>  PR:             conf/122127
>  MFC after:      1 week

There is a bug in there:

+	# Check for hard wired unit
+	eval _ppp_unit=\$ppp_${_ppp_profile_cleaned}_unit
+	if [ -n "_ppp_unit" ]; then

                 ^^^^^^^^^^^  should ${_ppp_unit}

+		_ppp_unit="-unit${_ppp_unit}"
+	fi
+	rc_flags="$rc_flags $_ppp_unit"



>  Revision  Changes    Path
>  1.18      +8 -1      src/etc/rc.d/ppp
>  1.337     +9 -1      src/share/man/man5/rc.conf.5

-- 
Bjoern A. Zeeb                                 bzeeb at Zabbadoz dot NeT
Software is harder than hardware  so better get it right the first time.


More information about the cvs-src mailing list