Rosen Penev a031f16348 treewide: use -n for fw_[saveprint]env
Using awk and cut to simulate -n is pointless.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22806
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-04-07 09:51:10 +02:00

19 lines
328 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
boot() {
case $(board_name) in
adtran,bsap1800-v2|\
adtran,bsap1840)
fconfig -s -w -d $(find_mtd_part "RedBoot config") -n boot_cntb -x 0
;;
moxa,awk-1137c)
fw_setenv fwr_verify 0
;;
qihoo,c301)
fw_setenv $(printf "image%strynum" $(fw_printenv -n activeregion)) 0
;;
esac
}