From: Felix Fietkau Date: Tue, 25 Jul 2006 22:13:54 +0000 (+0000) Subject: fix dial on demand support (#436) X-Git-Tag: whiterussian_rc6~187 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bfd7ce47367d9b5f441a16362cc0ec86524a691a;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix dial on demand support (#436) SVN-Revision: 4285 --- diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe index 2869bf7e3a..68b3e85a5b 100644 --- a/openwrt/package/ppp/files/ifup.pppoe +++ b/openwrt/package/ppp/files/ifup.pppoe @@ -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 diff --git a/openwrt/package/pptp/files/ifup.pptp b/openwrt/package/pptp/files/ifup.pptp index cb87dab934..f787383c04 100644 --- a/openwrt/package/pptp/files/ifup.pptp +++ b/openwrt/package/pptp/files/ifup.pptp @@ -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