From 01ea7e3186fa0169ad4606ed2be87c6f5eedcf2b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 7 Aug 2007 20:23:38 +0000 Subject: More pppd fixes --- net.Linux/pppd.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'net.Linux') diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh index 8829ab9..72acc30 100644 --- a/net.Linux/pppd.sh +++ b/net.Linux/pppd.sh @@ -25,7 +25,7 @@ pppd_pre_start() { eval config=\$config_${IFVAR} # If no config for ppp then don't default to DHCP if [ -z "${config}" ] ; then - eval config_${IFVAR}=\"null\" + eval config_${IFVAR}=null fi return 0 fi @@ -57,7 +57,7 @@ pppd_pre_start() { eval $(_get_array "pppd_${IFVAR}") opts="$@" - local mtu= hasmtu=false hasmru=false hasmaxfail=false haspersits=false + local mtu= hasmtu=false hasmru=false hasmaxfail=false haspersist=false local hasupdetach=false for i in "$@" ; do set -- ${i} @@ -70,7 +70,7 @@ pppd_pre_start() { mru) hasmru=true ;; maxfail) hasmaxfail=true ;; persist) haspersist=true ;; - updetach) hasupdetach=true; + updetach) hasupdetach=true ;; esac done @@ -78,7 +78,7 @@ pppd_pre_start() { local username= password= passwordset= eval username=\$username_${IFVAR} eval password=\$password_${IFVAR} - eval passwordset=\${password_${IFVAR}-x} + eval passwordset=\$\{password_${IFVAR}-x\} if [ -n "${username}" ] \ && [ -n "${password}" -o -z "${passwordset}" ] ; then opts="${opts} plugin passwordfd.so passwordfd 0" @@ -88,7 +88,7 @@ pppd_pre_start() { ${hasmtu} || opts="${opts} mtu ${mtu}" ${hasmru} || opts="${opts} mru ${mtu}" fi - ${hasmailfail} || opts="${opts} maxfail 0" + ${hasmaxfail} || opts="${opts} maxfail 0" ${haspersist} || opts="${opts} persist" # Set linkname because we need /var/run/ppp-${linkname}.pid -- cgit v1.2.3