fix dial on demand support (#436)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 25 Jul 2006 22:13:54 +0000 (22:13 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 25 Jul 2006 22:13:54 +0000 (22:13 +0000)
SVN-Revision: 4285

openwrt/package/ppp/files/ifup.pppoe
openwrt/package/pptp/files/ifup.pptp

index 2869bf7e3a71ca79c2785c2e39865c7f5e0a1b94..68b3e85a5b8a8f6e71d7225ccf8d611f54c4dce1 100644 (file)
@@ -26,6 +26,8 @@ done
                        DEMAND=$(nvram get ppp_idletime)
                        DEMAND=${DEMAND:+demand idle $DEMAND}
                        [ -f /etc/ppp/filter ] && DEMAND=${DEMAND:+precompiled-active-filter /etc/ppp/filter $DEMAND}
+                       # set up a dummy nameserver for dial on demand
+                       echo "nameserver 0.0.0.1" > /tmp/resolv.conf
                ;;
                *) DEMAND="";;
        esac
index cb87dab93482082ab91d1fad87edc7590235f046..f787383c04e7889d209c3537b3f8826e55244b6f 100644 (file)
@@ -25,6 +25,8 @@ done
                        DEMAND=$(nvram get ppp_idletime)
                        DEMAND=${DEMAND:+demand idle $DEMAND}
                        [ -f /etc/ppp/filter ] && DEMAND=${DEMAND:+precompiled-active-filter /etc/ppp/filter $DEMAND}
+                       # set up a dummy nameserver for dial on demand
+                       echo "nameserver 0.0.0.1" > /tmp/resolv.conf
                ;;
                *) DEMAND="";;
        esac