From 4768bd45f2a9135b23dd8a00543758888a707fab Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 19 Apr 2007 13:00:59 +0000 Subject: Remove default config for ppp --- net.Linux/pppd.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh index dff69c28..cf55951b 100644 --- a/net.Linux/pppd.sh +++ b/net.Linux/pppd.sh @@ -17,11 +17,19 @@ requote() { } pppd_pre_start() { - ${IN_BACKGROUND} && return 0 - # Interface has to be called ppp [ "${IFACE%%[0-9]*}" = "ppp" ] || return 0 + if ${IN_BACKGROUND} ; then + local config= + eval config=\$config_${IFVAR} + # If no config for ppp then don't default to DHCP + if [ -z "${config}" ] ; then + eval config_${IFVAR}=\"null\" + fi + return 0 + fi + local link= i= opts= unit="${IFACE#ppp}" mtu= # PPP requires a link to communicate over - normally a serial port -- cgit v1.2.3