summaryrefslogtreecommitdiff
path: root/package/ppp/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-08-30 16:53:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-08-30 16:53:22 +0000
commit52a138a9531aa82117216443ca1f346974e3a58e (patch)
tree8fbb48b1f4a80441d9eca6c4d17bf52bb63bc2cb /package/ppp/files
parent655027891294c054d43d554788f01c40f742ab11 (diff)
downloadmtk-20170518-52a138a9531aa82117216443ca1f346974e3a58e.zip
mtk-20170518-52a138a9531aa82117216443ca1f346974e3a58e.tar.gz
mtk-20170518-52a138a9531aa82117216443ca1f346974e3a58e.tar.bz2
fix ifname in network state for pppoe and pptp, add a workaround for isps sending wrong netmasks for pptp (thx, moonwatcher)
SVN-Revision: 8552
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 86bdddd..ba6a876 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" \