immortalwrt/package/boot/uboot-envtools/files/kirkwood

35 lines
584 B
Plaintext
Raw Normal View History

2017-09-06 19:19:45 +08:00
#!/bin/sh
#
# Copyright (C) 2012-2014 OpenWrt.org
#
[ -e /etc/config/ubootenv ] && exit 0
touch /etc/config/ubootenv
. /lib/uboot-envtools.sh
. /lib/functions.sh
2018-01-15 18:26:41 +08:00
board=$(board_name)
2017-09-06 19:19:45 +08:00
case "$board" in
2018-01-15 18:26:41 +08:00
cloudengines,pogoe02|\
cloudengines,pogoplugv4|\
2018-09-07 13:43:55 +08:00
iom,ix2-200|\
2018-01-15 18:26:41 +08:00
linksys,viper|\
raidsonic,ib-nas62x0|\
seagate,dockstar|\
zyxel,nsa310b|\
zyxel,nsa325)
2017-09-06 19:19:45 +08:00
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
;;
2018-01-15 18:26:41 +08:00
linksys,audi)
2017-09-06 19:19:45 +08:00
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
;;
esac
config_load ubootenv
config_foreach ubootenv_add_app_config ubootenv
exit 0