diff options
Diffstat (limited to 'net.Linux')
-rw-r--r-- | net.Linux/pppd.sh | 12 |
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 |