X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/29d812257c591a9c395dc527710da1ce3659f386..fd6ac9f981e9ffb08918169ddaf75b440b7e88a4:/package/ppp/files/pppoe.sh diff --git a/package/ppp/files/pppoe.sh b/package/ppp/files/pppoe.sh index f33d37a1a..c0bb51516 100644 --- a/package/ppp/files/pppoe.sh +++ b/package/ppp/files/pppoe.sh @@ -13,9 +13,9 @@ setup_interface_pppoe() { # make sure the network state references the correct ifname scan_ppp "$config" config_get ifname "$config" ifname - uci set "/var/state/network.$config.ifname=$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 \