aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-04-07 16:02:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-04-07 16:02:50 +0000
commit1303157abd334e9d1d09e6fd70e3ac18d361ef31 (patch)
treed733a3b03610b93f4d9e1a62af92815c03f25572 /package
parent78a105d43038b597240a76f7405571e10ae6de21 (diff)
downloadupstream-1303157abd334e9d1d09e6fd70e3ac18d361ef31.tar.gz
upstream-1303157abd334e9d1d09e6fd70e3ac18d361ef31.tar.bz2
upstream-1303157abd334e9d1d09e6fd70e3ac18d361ef31.zip
fix use of uci_set_state in network scripts (thx, netprince)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10763 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index d76c4bf962..7fa1d37e49 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -119,8 +119,8 @@ set_interface_ifname() {
local ifname="$2"
config_get device "$1" device
- uci_set_state "network.$config.ifname=$ifname"
- uci_set_state "network.$config.device=$device"
+ uci_set_state network "$config" ifname "$ifname"
+ uci_set_state network "$config" device "$device"
}
setup_interface() {