-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramips: mt76x8: fixs for Keenetic Air (KN-1613) and Extra (KN-1713)
A new syntax for LEDs was used, and migration of the LEDs configuration was added. Used lower case hex characters for the addresses. Fixed a USB port power issue. Signed-off-by: Anton Yu. Ivanusev <[email protected]> Link: openwrt/openwrt#17521 Signed-off-by: Hauke Mehrtens <[email protected]>
- Loading branch information
1 parent
9685058
commit 191ed4e
Showing
3 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
target/linux/ramips/mt76x8/base-files/etc/board.d/04_led_migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
. /lib/functions.sh | ||
. /lib/functions/migrations.sh | ||
|
||
board=$(board_name) | ||
|
||
case "$board" in | ||
keenetic,kn-1613) | ||
migrate_leds 'green:internet=green:wan' | ||
;; | ||
esac | ||
|
||
remove_devicename_leds | ||
|
||
migrations_apply system | ||
|
||
exit 0 |