aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/zyxel-bootconfig
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2022-12-26 22:33:47 +0100
committerDavid Bauer <mail@david-bauer.net>2023-01-07 01:32:58 +0100
commitf97ce066a85c8a67bbda696256b5a9a875727b4c (patch)
tree4036c6a795a69a0fffdf5f76c75a5b344e0bcf82 /package/utils/zyxel-bootconfig
parente4a76673ff4f655ba0698d9edb9efbacd0f82fff (diff)
downloadupstream-f97ce066a85c8a67bbda696256b5a9a875727b4c.tar.gz
upstream-f97ce066a85c8a67bbda696256b5a9a875727b4c.tar.bz2
upstream-f97ce066a85c8a67bbda696256b5a9a875727b4c.zip
zyxel-bootconfig: clean up script
Drop unused variable and fix identation. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/utils/zyxel-bootconfig')
-rw-r--r--package/utils/zyxel-bootconfig/files/95_apply_bootconfig4
1 files changed, 1 insertions, 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
;;