summaryrefslogtreecommitdiff
path: root/openwrt/package/ppp/files/ifup.pppoe
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-03-18 17:27:20 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-03-18 17:27:20 +0000
commitd5689558090618b21a8ee5c514a9dcf33a265c8d (patch)
treed33e4febaf074b43f1ee564b4fe4480dde9cf700 /openwrt/package/ppp/files/ifup.pppoe
parente7125b2ef00b07aa97f11f835c108c8942907cfd (diff)
downloadmtk-20170518-d5689558090618b21a8ee5c514a9dcf33a265c8d.zip
mtk-20170518-d5689558090618b21a8ee5c514a9dcf33a265c8d.tar.gz
mtk-20170518-d5689558090618b21a8ee5c514a9dcf33a265c8d.tar.bz2
precompile ppp active filter (reduces libpcap overhead to only a few k), enable by default to support proper demand dialling, fixes #307
SVN-Revision: 3401
Diffstat (limited to 'openwrt/package/ppp/files/ifup.pppoe')
-rw-r--r--openwrt/package/ppp/files/ifup.pppoe1
1 files changed, 1 insertions, 0 deletions
diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe
index d4a79ae..1f9cd73 100644
--- a/openwrt/package/ppp/files/ifup.pppoe
+++ b/openwrt/package/ppp/files/ifup.pppoe
@@ -24,6 +24,7 @@ case "$DEMAND" in
on|1|enabled)
DEMAND=$(nvram get ppp_idletime)
DEMAND=${IDLETIME:+demand idle $IDLETIME}
+ [ -f /etc/ppp/filter ] && DEMAND=${DEMAND:+precompiled-active-filter /etc/ppp/filter $DEMAND}
;;
*) DEMAND="persist";;
esac