mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
65305cb448
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>
25 lines
378 B
Bash
Executable File
25 lines
378 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
iom,ix2-200)
|
|
ucidef_set_led_timer "health" "health" "status:white:rebuild_led" "200" "800"
|
|
;;
|
|
linksys,e4200-v2|\
|
|
linksys,ea4500)
|
|
ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|