aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-19 13:00:59 +0000
committerRoy Marples <roy@marples.name>2007-04-19 13:00:59 +0000
commit4768bd45f2a9135b23dd8a00543758888a707fab (patch)
treef4c208cd82a5b3714c95c256952894b521d89a17
parent247dec818b881fcb40087846c46055bd2229db04 (diff)
Remove default config for ppp
-rw-r--r--net.Linux/pppd.sh12
1 files 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