X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/23751dd7ecca49e5028cab4273619e3a4db74aa9..8f69e37a934992d4ee185241d10211c0d04e4b9d:/package/ppp/ipkg/ppp-pppoe-plugin/etc/init.d/S50pppoe diff --git a/package/ppp/ipkg/ppp-pppoe-plugin/etc/init.d/S50pppoe b/package/ppp/ipkg/ppp-pppoe-plugin/etc/init.d/S50pppoe index 7e635ee79..c7e6d10fb 100755 --- a/package/ppp/ipkg/ppp-pppoe-plugin/etc/init.d/S50pppoe +++ b/package/ppp/ipkg/ppp-pppoe-plugin/etc/init.d/S50pppoe @@ -15,13 +15,14 @@ done USERNAME=$(nvram get ppp_username) PASSWORD=$(nvram get ppp_passwd) REDIAL=$(nvram get ppp_redialperiod) - REDIAL=${REDIAL:+holdoff $REDIAL} + REDIAL=${REDIAL:+lcp-echo-interval $REDIAL} IDLETIME=$(nvram get ppp_idletime) - IDLETIME=${IDLETIME:+idle $IDLETIME} + IDLETIME=${IDLETIME:+lcp-echo-failure $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\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 ) &