X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2af90479fbd25ca63d9697200d43ea614d657184..006b5034f9bab869e7865b2540ffc65f9bdbb169:/package/pptp/files/ifup.pptp?ds=sidebyside diff --git a/package/pptp/files/ifup.pptp b/package/pptp/files/ifup.pptp index eda78e440..9b1ac07c2 100644 --- a/package/pptp/files/ifup.pptp +++ b/package/pptp/files/ifup.pptp @@ -23,6 +23,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 @@ -33,10 +34,10 @@ do_ifup $PPTP_PROTO $type # hack for some buggy ISPs NETMASK=$(nvram get ${type}_netmask) -IFNAME=$(nvram get pptp_ifname) +IFNAME=$(nvram get ${type}_device) [ -z "$NETMASK" -o -z "$IFNAME" ] || ifconfig $IFNAME netmask $NETMASK -/usr/sbin/pppd nodetach \ +/usr/sbin/pppd \ pty "/usr/sbin/pptp $IP --loglevel 0 --nolaunchpppd" \ file /etc/ppp/options.pptp \ connect /bin/true \