summaryrefslogtreecommitdiff
path: root/etc/rc.d/netoptions
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-07-26 10:49:37 +0000
committerBrian Somers <brian@FreeBSD.org>1999-07-26 10:49:37 +0000
commit51f80ae148a9ffe731079681d85ad8810dfd77e5 (patch)
treec33e6d761db21e86c7ec6ad0e85d3cd55df855b6 /etc/rc.d/netoptions
parent4a9e5bd0dbb890d312896b1dec911c8cd861859d (diff)
downloadsrc-test2-51f80ae148a9ffe731079681d85ad8810dfd77e5.tar.gz
src-test2-51f80ae148a9ffe731079681d85ad8810dfd77e5.zip
Notes
Diffstat (limited to 'etc/rc.d/netoptions')
-rw-r--r--etc/rc.d/netoptions19
1 files changed, 18 insertions, 1 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index d0eec1ae9bcf..007d0f928594 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -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