summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-07-26 10:49:37 +0000
committerbrian <brian@FreeBSD.org>1999-07-26 10:49:37 +0000
commit03ab8a3b7f99d8f1fc922f681d713dde620b53e6 (patch)
tree139b260d39c89fddc544d66db001ad8bb3d2076b /etc/rc.network
parentc8bc216749dc518674b11162d798262506b6b390 (diff)
downloadFreeBSD-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.network')
-rw-r--r--etc/rc.network19
1 files changed, 18 insertions, 1 deletions
diff --git a/etc/rc.network b/etc/rc.network
index d0eec1a..007d0f9 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -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
OpenPOWER on IntegriCloud