From: David Bauer Date: Mon, 26 Dec 2022 21:33:47 +0000 (+0100) Subject: zyxel-bootconfig: clean up script X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f97ce066a85c8a67bbda696256b5a9a875727b4c;p=openwrt%2Fstaging%2Fblocktrron.git zyxel-bootconfig: clean up script Drop unused variable and fix identation. Signed-off-by: David Bauer --- 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 ;;