fix interface enumeration issues related to /var/state/network (thx to fish for debug...
[openwrt/openwrt.git] / package / ppp / files / pppoe.sh
index f33d37a1a84a54b7e018d28da82e0db0eb7247d6..e1c9a20cd71b21ff5aa47c82f55a4707591ce317 100644 (file)
@@ -13,7 +13,7 @@ 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
        mtu=${mtu:-1492}