From 5e87a889146e7059ebd529ceef8baf9514aee774 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 6 Sep 2005 13:14:54 +0000 Subject: [PATCH] fix typo and add override for netmask when using pptp with dhcp (needed for some weird ISPs) SVN-Revision: 1859 --- openwrt/package/pptp/files/ifup.pptp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openwrt/package/pptp/files/ifup.pptp b/openwrt/package/pptp/files/ifup.pptp index 9de87feebd..15178fe302 100644 --- a/openwrt/package/pptp/files/ifup.pptp +++ b/openwrt/package/pptp/files/ifup.pptp @@ -25,6 +25,11 @@ while :; do MTU=${MTU:+ mtu $MTU mru $MTU} do_ifup $PPTP_PROTO $type + + # hack for some buggy ISPs + NETMASK=$(nvram get ${type}_netmask) + IFNAME=$(nvram get pptp_ifname) + [ -z "$NETMASK" -o -z "$IFNAME" ] || ifconfig $IFNAME netmask $NETMASK /usr/sbin/pppd nodetach \ pty "/usr/sbin/pptp $IP --loglevel 0 --nolaunchpppd" \ @@ -38,7 +43,6 @@ while :; do password "$PASSWORD" \ $MTU \ $IDLETIME \ - $REDIAL \ - $IFNAME + $REDIAL done & -- 2.30.2