aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-02-02 23:01:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-02-02 23:01:02 +0000
commit6947242c0429f1860e731f871569b9b769f817b8 (patch)
tree9f46bfd9b81a479ca8fbf8b7eba7b04ba515f6f4 /package
parent6e24aec7f0db8dfd92a415c271cd584783c54c2d (diff)
downloadupstream-6947242c0429f1860e731f871569b9b769f817b8.tar.gz
upstream-6947242c0429f1860e731f871569b9b769f817b8.tar.bz2
upstream-6947242c0429f1860e731f871569b9b769f817b8.zip
netifd: fix legacy scripts that expect the ifname option to be mapped to the device option after fixup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30003 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/netifd/files/lib/network/config.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/netifd/files/lib/network/config.sh b/package/netifd/files/lib/network/config.sh
index 4ce362eb19..ab3efe8c00 100755
--- a/package/netifd/files/lib/network/config.sh
+++ b/package/netifd/files/lib/network/config.sh
@@ -26,6 +26,7 @@ fixup_interface() {
config_get type "$config" type
config_get ifname "$config" ifname
+ config_get device "$config" device "$ifname"
[ "bridge" = "$type" ] && ifname="br-$config"
config_set "$config" device "$ifname"
ubus_call "network.interface.$config" status
@@ -33,6 +34,7 @@ fixup_interface() {
[ -n "$l3dev" ] && ifname="$l3dev"
json_init
config_set "$config" ifname "$ifname"
+ config_set "$config" device "$device"
}
scan_interfaces() {