diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 1999-01-13 17:32:37 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 1999-01-13 17:32:37 +0000 |
commit | 8a173970c1bfedd892c65650ce17fd4b0b98822a (patch) | |
tree | 29fe831148e77d96e45c61b0fb61b92a55d07d68 /etc/rc.network | |
parent | 00f19754a4ed3f1275ae4a57ba0fd5638d7b6e9e (diff) | |
download | src-8a173970c1bfedd892c65650ce17fd4b0b98822a.tar.gz src-8a173970c1bfedd892c65650ce17fd4b0b98822a.zip |
Add some special hooks for sppp(4) interfaces. In addition to the
normal ifconfig stuff, one might need to pass down authentication
parameters for them.
This is closely tied to Hellmuth's impending rc patches for ISDN, but
sppp can also be used separately (thus it doesn't go directly into the
planned ISDN section of rc.conf).
Reviewed by: hm
Notes
Notes:
svn path=/head/; revision=42627
Diffstat (limited to 'etc/rc.network')
-rw-r--r-- | etc/rc.network | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/etc/rc.network b/etc/rc.network index e3c7c8d2e66c..49e936a900c8 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.37 1999/01/03 22:19:23 jkh Exp $ +# $Id: rc.network,v 1.38 1999/01/13 08:20:55 hm Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -36,6 +36,20 @@ network_pass1() { . /etc/rc.isdn fi + # Special options for sppp(4) interfaces go here. These need + # to go _before_ the general ifconfig section, since in the case + # of hardwired (no link1 flag) but required authentication, you + # cannot pass auth parameters down to the already running interface. + for ifn in ${sppp_interfaces}; do + eval spppcontrol_args=\$spppconfig_${ifn} + if [ -n "${spppcontrol_args}" ] ; then + # The auth secrets might contain spaces; in order + # to retain the quotation, we need to eval them + # here. + eval spppcontrol ${ifn} ${spppcontrol_args} + fi + done + # Set up all the network interfaces, calling startup scripts if needed for ifn in ${network_interfaces}; do if [ -e /etc/start_if.${ifn} ]; then |