aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-11 23:39:10 +0200
committerChuanhong Guo <gch981213@gmail.com>2019-07-25 22:01:29 +0800
commitf72d2ba60a5238d52ceaccd8e3e4b193a4534229 (patch)
treec3292def6816f3a18f4068b30b8536afe0db8a49 /target/linux/ramips/base-files
parentee5fce887a2cb134ef21bd7bcf007342b0474ab7 (diff)
downloadupstream-f72d2ba60a5238d52ceaccd8e3e4b193a4534229.tar.gz
upstream-f72d2ba60a5238d52ceaccd8e3e4b193a4534229.tar.bz2
upstream-f72d2ba60a5238d52ceaccd8e3e4b193a4534229.zip
ramips: consistently use lower-case factory partition label
The vast majority of devices labels "factory" partition with lower case. Convert the small fraction with capital letter to that and merge another case in 02_network. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network12
1 files changed, 5 insertions, 7 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 90e4e29230..df1e4ce222 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -609,11 +609,12 @@ ramips_setup_macs()
;;
iodata,wn-ac1167gr|\
iodata,wn-ac733gr3)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary Factory 4)" -1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" -1)
;;
iodata,wn-ax1167gr|\
- iodata,wn-gx300gr)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary Factory 4)" 1)
+ iodata,wn-gx300gr|\
+ trendnet,tew-692gr)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 1)
;;
lenovo,newifi-d1)
lan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 2)
@@ -667,16 +668,13 @@ ramips_setup_macs()
trendnet,tew-691gr)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 3)
;;
- trendnet,tew-692gr)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 1)
- ;;
wiznet,wizfi630a)
lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(mtd_get_mac_binary factory 40)
;;
xiaomi,mir3g|\
xiaomi,mir3p)
- lan_mac=$(mtd_get_mac_binary Factory 0xe006)
+ lan_mac=$(mtd_get_mac_binary factory 0xe006)
;;
xiaomi,miwifi-mini)
wan_mac=$(cat /sys/class/net/eth0/address)