2
0
forked from Ivasoft/openwrt

kirkwood: use real model names for Linksys devices

This replaces the internal device names "Audi" and "Viper" with the
real model names, which a user would look for. This makes the
Linksys devices on this target consistent with the names recently
changed for mvebu based on the same idea.

As a consequence, the "viper" device definition is split into two
separate definitions with the correct names for both real models.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler
2020-06-13 00:36:01 +02:00
parent 217877d046
commit 65305cb448
11 changed files with 66 additions and 31 deletions

View File

@@ -10,10 +10,11 @@ board_config_update
board=$(board_name)
case "$board" in
"iom,ix2-200")
iom,ix2-200)
ucidef_set_led_timer "health" "health" "status:white:rebuild_led" "200" "800"
;;
"linksys,viper")
linksys,e4200-v2|\
linksys,ea4500)
ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
;;
esac

View File

@@ -28,8 +28,9 @@ case "$board" in
"zyxel,nsa310s")
ucidef_set_interface_lan "eth0" "dhcp"
;;
"linksys,audi"|\
"linksys,viper")
"linksys,e4200-v2"|\
"linksys,ea3500"|\
"linksys,ea4500")
ucidef_set_interfaces_lan_wan "ethernet1 ethernet2 ethernet3 ethernet4" "internet"
ucidef_set_interface_macaddr "wan" $( mtd_get_mac_ascii u_env eth1addr )
;;

View File

@@ -9,8 +9,9 @@
board_config_update
case "$(board_name)" in
linksys,audi|\
linksys,viper)
linksys,e4200-v2|\
linksys,ea3500|\
linksys,ea4500)
ucidef_set_compat_version "1.1"
;;
esac

View File

@@ -4,8 +4,9 @@ START=99
boot() {
case $(board_name) in
linksys,audi|\
linksys,viper)
linksys,e4200-v2|\
linksys,ea3500|\
linksys,ea4500)
mtd resetbc s_env || true
;;
esac