From 51f80ae148a9ffe731079681d85ad8810dfd77e5 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Mon, 26 Jul 1999 10:49:37 +0000 Subject: Add a default ppp.conf (mode 600). Originally submitted by: Wayne Self 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 --- etc/rc.d/netoptions | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'etc/rc.d/netoptions') 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 -- cgit v1.2.3