forked from Ivasoft/openwrt
ar71xx uses `archer-c7-v5` for led prefix, but ath79 sticks to more generic `tplink` as the DTS is reused by more boards, so we need to perform migrations of the LED names during upgrade. Cc: Adrian Schmutzler <freifunk@adrianschmutzler.de> Signed-off-by: Petr Štetiar <ynezz@true.cz>
20 lines
277 B
Bash
20 lines
277 B
Bash
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
. /lib/functions/migrations.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
engenius,epg5000)
|
|
migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
|
|
;;
|
|
tplink,archer-c7-v5)
|
|
migrate_leds "archer-c7-v5:=tp-link:"
|
|
;;
|
|
esac
|
|
|
|
migrations_apply system
|
|
|
|
exit 0
|