fix on-demand pppoe connections
authorNicolas Thill <nico@openwrt.org>
Thu, 12 Jan 2006 17:43:36 +0000 (17:43 +0000)
committerNicolas Thill <nico@openwrt.org>
Thu, 12 Jan 2006 17:43:36 +0000 (17:43 +0000)
SVN-Revision: 2939

openwrt/package/ppp/files/ifup.pppoe

index 82ab86c7a9c3bbf9bfcd3f1e66bf08fb4a7b4f1f..176ef9015ff86d9e3477a28631e5f77059bb96a9 100644 (file)
@@ -22,7 +22,7 @@ done
        case "$DEMAND" in
                on|1|enabled)
                        DEMAND=$(nvram get ppp_idletime)
-                       DEMAND=${IDLETIME:+demand idle $IDLETIME}
+                       DEMAND=${DEMAND:+demand idle $DEMAND}
                ;;
                *) DEMAND="";;
        esac