mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 17:36:12 +02:00
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>
19 lines
328 B
Bash
Executable File
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
|
|
}
|