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:
@@ -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
|
||||
|
||||
@@ -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 )
|
||||
;;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user