fix pptp idletime setting.
authorNicolas Thill <nico@openwrt.org>
Sat, 20 May 2006 15:27:09 +0000 (15:27 +0000)
committerNicolas Thill <nico@openwrt.org>
Sat, 20 May 2006 15:27:09 +0000 (15:27 +0000)
SVN-Revision: 3806

openwrt/package/pptp/files/ifup.pptp

index bbcc4d57206e83ad23c92f78b97e42d15d4123a5..5019f5a94b336d56891f19c44d19c2c7ac106d82 100644 (file)
@@ -23,7 +23,7 @@ done
        case "$DEMAND" in
                on|1|enabled)
                        DEMAND=$(nvram get ppp_idletime)
-                       DEMAND=${IDLETIME:+demand idle $IDLETIME}
+                       DEMAND=${DEMAND:+demand idle $DEMAND}
                        [ -f /etc/ppp/filter ] && DEMAND=${DEMAND:+precompiled-active-filter /etc/ppp/filter $DEMAND}
                ;;
                *) DEMAND="";;