precompile ppp active filter (reduces libpcap overhead to only a few k), enable by...
[openwrt/svn-archive/archive.git] / openwrt / package / ppp / files / ifup.pppoa
index 2ae6019c51cc6d0d4edf31c3651c26d564683516..baea25ebf297428885251434176fa9ecdf634662 100644 (file)
@@ -25,6 +25,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