[openwrt/openwrt] zyxel-bootconfig: clean up script
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 6 16:33:13 PST 2023
blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f97ce066a85c8a67bbda696256b5a9a875727b4c
commit f97ce066a85c8a67bbda696256b5a9a875727b4c
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Mon Dec 26 22:33:47 2022 +0100
zyxel-bootconfig: clean up script
Drop unused variable and fix identation.
Signed-off-by: David Bauer <mail at david-bauer.net>
---
package/utils/zyxel-bootconfig/files/95_apply_bootconfig | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/package/utils/zyxel-bootconfig/files/95_apply_bootconfig b/package/utils/zyxel-bootconfig/files/95_apply_bootconfig
index c47857b082..500b81234a 100644
--- a/package/utils/zyxel-bootconfig/files/95_apply_bootconfig
+++ b/package/utils/zyxel-bootconfig/files/95_apply_bootconfig
@@ -1,12 +1,10 @@
apply_bootconfig() {
. /lib/functions.sh
- local part
-
case $(board_name) in
zyxel,nwa50ax|\
zyxel,nwa55axe)
- mtd_idx=$(find_mtd_index "bootconfig")
+ mtd_idx=$(find_mtd_index "bootconfig")
zyxel-bootconfig "/dev/mtd$mtd_idx" set-image-status 0 valid
zyxel-bootconfig "/dev/mtd$mtd_idx" set-active-image 0
;;
More information about the lede-commits
mailing list