aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/ppp/files')
-rw-r--r--package/ppp/files/pppoe.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/ppp/files/pppoe.sh b/package/ppp/files/pppoe.sh
index 86bddddf59..ba6a8768da 100644
--- a/package/ppp/files/pppoe.sh
+++ b/package/ppp/files/pppoe.sh
@@ -12,6 +12,11 @@ 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
+ uci set "/var/state/network.$config.ifname=$ifname"
+
config_get mtu "$cfg" mtu
mtu=${mtu:-1492}
start_pppd "$config" \