aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-06-02 12:43:04 +0000
committerJohn Crispin <blogic@openwrt.org>2014-06-02 12:43:04 +0000
commit6695dc87b5279d279601e71390c36834e089ee2e (patch)
tree1df1f331c84778ceff893a2f34d5d4a1a27d6be8 /target
parente5aa6b969da09c8da4af7e830ac7cb8f6b0c0fa4 (diff)
downloadmaster-187ad058-6695dc87b5279d279601e71390c36834e089ee2e.tar.gz
master-187ad058-6695dc87b5279d279601e71390c36834e089ee2e.tar.bz2
master-187ad058-6695dc87b5279d279601e71390c36834e089ee2e.zip
ramips: fix not set lan/wan mac address
The first switch case is default case. Then it will only match default case. cause not update the lan/wan mac address. And in the default switch case the param lan_mac is empty. it will case error message 'arithmetic syntax error' when call macaddr_add function. Signed-off-by: michael lee <igvtee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40910 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index b9524f6d2c..e167ddb84f 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -179,10 +179,6 @@ ramips_setup_macs()
local wan_mac=""
case $board in
- *)
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
-
br-6475nd)
lan_mac=$(mtd_get_mac_binary devdata 13)
wan_mac=$(mtd_get_mac_binary devdata 7)
@@ -240,6 +236,10 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
+ *)
+ wan_mac=$(macaddr_add "$lan_mac" 1)
+ ;;
+
esac
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan $lan_mac