[OpenWrt-Devel] [PATCH] ramips: fix 04_led_migration case syntax

Russell Senior russell at personaltelco.net
Sat May 23 04:19:50 EDT 2020


Commit f761f4052c4 had bogus case syntax, the uci-defaults script threw
errors as a result and exited non-zero, probably didn't do what was
intended, but tried over and over since the non-zero exit prevents the
script from being deleted.

Signed-off-by: Russell Senior <russell at personaltelco.net>
---
 .../mt7621/base-files/etc/uci-defaults/04_led_migration       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
index 73140fd7d5..1248dcec0f 100644
--- a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
@@ -9,14 +9,16 @@ boardonly="${board##*,}"
 case "$board" in
 mikrotik,routerboard-750gr3)
 	migrate_leds "^rb750gr3:=$boardonly:"
+	;;
 mikrotik,routerboard-m11g)
 	migrate_leds "^rbm11g:=$boardonly:"
+	;;
 mikrotik,routerboard-m33g)
 	migrate_leds "^rbm33g:=$boardonly:"
+	;;
 netgear,wndr3700-v5)
 	migrate_leds "^wndr3700v5:=$boardonly:"
 	;;
-
 esac
 
 migrations_apply system
-- 
2.26.2



-- 
Russell Senior, President
russell at personaltelco.net

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list