diff options
author | Brian Somers <brian@FreeBSD.org> | 1999-07-26 10:49:37 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1999-07-26 10:49:37 +0000 |
commit | 51f80ae148a9ffe731079681d85ad8810dfd77e5 (patch) | |
tree | c33e6d761db21e86c7ec6ad0e85d3cd55df855b6 /etc/rc.d/netoptions | |
parent | 4a9e5bd0dbb890d312896b1dec911c8cd861859d (diff) | |
download | src-test2-51f80ae148a9ffe731079681d85ad8810dfd77e5.tar.gz src-test2-51f80ae148a9ffe731079681d85ad8810dfd77e5.zip |
Notes
Diffstat (limited to 'etc/rc.d/netoptions')
-rw-r--r-- | etc/rc.d/netoptions | 19 |
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 |