fix ppp reconnect (add persist option)
authorFelix Fietkau <nbd@openwrt.org>
Mon, 18 Apr 2005 19:34:55 +0000 (19:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 18 Apr 2005 19:34:55 +0000 (19:34 +0000)
SVN-Revision: 674

openwrt/package/ppp/ipkg/ppp-pppoe-plugin/etc/init.d/S50pppoe

index 7e635ee790b36cc1feb3480ba5bea6aaaaa56d34..33143c91584d7e14afcbd69e1b1d39e4fdb6e533 100755 (executable)
@@ -19,9 +19,10 @@ done
                IDLETIME=$(nvram get ppp_idletime)
                IDLETIME=${IDLETIME:+idle $IDLETIME}
                MTU=$(nvram get ppp_mtu)
+               MTU=${MTU:+ mtu $MTU mru $MTU}
 
                ifconfig $IFNAME up
-               echo -e "plugin rp-pppoe.so\nconnect /bin/true\nusepeerdns\ndefaultroute\nuser \"$USERNAME\"\npassword \"$PASSWORD\"\nmtu $MTU\n$IDLETIME\n$REDIAL" > /tmp/.pppoe-data
+               echo -e "plugin rp-pppoe.so\npersist\nconnect /bin/true\nusepeerdns\ndefaultroute\nuser \"$USERNAME\"\npassword \"$PASSWORD\"\n$MTU\n$IDLETIME\n$REDIAL" > /tmp/.pppoe-data
                /usr/sbin/pppd nodetach file /tmp/.pppoe-data $IFNAME
        done
 ) &