X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/fd00f35a4ffc6cbe3706abe5d92c28eb77829612..28ea12b3b334cd77895c287b4b264771ebf7b546:/package/ppp/files/pppoe.sh?ds=sidebyside diff --git a/package/ppp/files/pppoe.sh b/package/ppp/files/pppoe.sh index e1c9a20cd..bbd36a11a 100644 --- a/package/ppp/files/pppoe.sh +++ b/package/ppp/files/pppoe.sh @@ -1,5 +1,5 @@ -scan_pppoe() { - scan_ppp "$@" +stop_interface_pppoe() { + stop_interface_ppp "$1" } setup_interface_pppoe() { @@ -10,12 +10,7 @@ setup_interface_pppoe() { /sbin/insmod $module 2>&- >&- done - # make sure the network state references the correct ifname - scan_ppp "$config" - config_get ifname "$config" ifname - set_interface_ifname "$config" "$ifname" - - config_get mtu "$cfg" mtu + config_get mtu "$config" mtu mtu=${mtu:-1492} start_pppd "$config" \ plugin rp-pppoe.so \