projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ramips: add support for ZyXEL NWA50AX / NWA55AXE
[openwrt/openwrt.git]
/
package
/
utils
/
zyxel-bootconfig
/
files
/
95_apply_bootconfig
1
apply_bootconfig() {
2
. /lib/functions.sh
3
4
local part
5
6
case $(board_name) in
7
zyxel,nwa50ax|\
8
zyxel,nwa55axe)
9
mtd_idx=$(find_mtd_index "bootconfig")
10
zyxel-bootconfig "/dev/mtd$mtd_idx" set-image-status 0 valid
11
zyxel-bootconfig "/dev/mtd$mtd_idx" set-active-image 0
12
;;
13
esac
14
}
15
16
[ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main apply_bootconfig