diff options
author | brian <brian@FreeBSD.org> | 1999-07-26 10:49:37 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-07-26 10:49:37 +0000 |
commit | 03ab8a3b7f99d8f1fc922f681d713dde620b53e6 (patch) | |
tree | 139b260d39c89fddc544d66db001ad8bb3d2076b /etc/rc.d/network3 | |
parent | c8bc216749dc518674b11162d798262506b6b390 (diff) | |
download | FreeBSD-src-03ab8a3b7f99d8f1fc922f681d713dde620b53e6.zip FreeBSD-src-03ab8a3b7f99d8f1fc922f681d713dde620b53e6.tar.gz |
Add a default ppp.conf (mode 600).
Originally submitted by: Wayne Self <wself@cdrom.com>
Allow a ppp startup option in rc.conf.
Adjust sysinstall so that it appends to the end of ppp.conf
and uses the generated profile to start ppp in auto mode on
boot.
Submitted by: Josef L. Karthauser <joe@uk.FreeBSD.org>
Diffstat (limited to 'etc/rc.d/network3')
-rw-r--r-- | etc/rc.d/network3 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 index d0eec1a..007d0f9 100644 --- a/etc/rc.d/network3 +++ b/etc/rc.d/network3 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.49 1999/07/08 18:56:02 peter Exp $ +# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -144,6 +144,23 @@ network_pass1() { fi fi + # Warm up user ppp if required. + if [ "X$ppp_enable" = X"YES" ]; then + # Establish ppp mode. + if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \ + -a "X$ppp_mode" != X"dedicated" ]; then \ + ppp_mode="auto"; + fi + ppp_command="-${ppp_mode} "; + + # Switch on alias mode? + if [ "X$ppp_alias" = X"YES" ]; then + ppp_command="${ppp_command} -alias"; + fi + + echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile} + fi + # Additional ATM interface configuration if [ -n "${atm_pass1_done}" ]; then atm_pass2 |