瀏覽代碼

ramips: fix 04_led_migration case syntax for mt7621

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.

Fixes: f761f4052c41 ("ramips: mt7621: harmonize naming scheme for Mikrotik")

Signed-off-by: Russell Senior <[email protected]>
[extend commit title, add Fixes]
Signed-off-by: Adrian Schmutzler <[email protected]>
Russell Senior 5 年之前
父節點
當前提交
fe9a2beecb
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration

+ 3 - 1
target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration

@@ -9,14 +9,16 @@ boardonly="${board##*,}"
 case "$board" in
 case "$board" in
 mikrotik,routerboard-750gr3)
 mikrotik,routerboard-750gr3)
 	migrate_leds "^rb750gr3:=$boardonly:"
 	migrate_leds "^rb750gr3:=$boardonly:"
+	;;
 mikrotik,routerboard-m11g)
 mikrotik,routerboard-m11g)
 	migrate_leds "^rbm11g:=$boardonly:"
 	migrate_leds "^rbm11g:=$boardonly:"
+	;;
 mikrotik,routerboard-m33g)
 mikrotik,routerboard-m33g)
 	migrate_leds "^rbm33g:=$boardonly:"
 	migrate_leds "^rbm33g:=$boardonly:"
+	;;
 netgear,wndr3700-v5)
 netgear,wndr3700-v5)
 	migrate_leds "^wndr3700v5:=$boardonly:"
 	migrate_leds "^wndr3700v5:=$boardonly:"
 	;;
 	;;
-
 esac
 esac
 
 
 migrations_apply system
 migrations_apply system