projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f99bf65
)
netifd: fix legacy scripts that expect the ifname option to be mapped to the device...
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 2 Feb 2012 23:01:02 +0000
(23:01 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 2 Feb 2012 23:01:02 +0000
(23:01 +0000)
SVN-Revision: 30003
package/netifd/files/lib/network/config.sh
patch
|
blob
|
history
diff --git
a/package/netifd/files/lib/network/config.sh
b/package/netifd/files/lib/network/config.sh
index 4ce362eb199917b1a940abc5e7be9ddafbaf7508..ab3efe8c005c99e5c522cedc7d0141a7f72369a1 100755
(executable)
--- 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() {