zyxel-bootconfig: clean up script
authorDavid Bauer <mail@david-bauer.net>
Mon, 26 Dec 2022 21:33:47 +0000 (22:33 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sat, 7 Jan 2023 00:32:58 +0000 (01:32 +0100)
Drop unused variable and fix identation.

Signed-off-by: David Bauer <mail@david-bauer.net>
package/utils/zyxel-bootconfig/files/95_apply_bootconfig

index c47857b082728c65e7ea6fea3d264d24233c7633..500b81234a60f6d9584770ead493dd9e2d98c226 100644 (file)
@@ -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
                ;;