Here comes the new UCI. Enjoy :)
[openwrt/svn-archive/archive.git] / package / pptp / files / pptp.sh
index f1c46c9a39cf9c2f06ff2693e920acef7b9ac936..0743082ca90220815266eb4a0ad82cb1a12271cd 100644 (file)
@@ -23,7 +23,7 @@ setup_interface_pptp() {
        # 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"
+       uci_set_state network "$config" ifname "$ifname"
 
        config_get mtu "$cfg" mtu
        config_get server "$cfg" server