2012-08-29 10:37:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2011-2012 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
[ -e /etc/config/ubootenv ] && exit 0
|
|
|
|
|
|
|
|
touch /etc/config/ubootenv
|
|
|
|
|
|
|
|
. /lib/uboot-envtools.sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
board=$(board_name)
|
2012-08-29 10:37:32 +00:00
|
|
|
|
|
|
|
case "$board" in
|
2016-12-13 21:30:11 +00:00
|
|
|
all0239-3g|\
|
2017-04-07 22:34:48 +00:00
|
|
|
all0256n-4M|\
|
|
|
|
all0256n-8M|\
|
2012-08-29 10:37:32 +00:00
|
|
|
all5002)
|
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
|
|
|
|
;;
|
2016-12-13 21:30:11 +00:00
|
|
|
linkits7688|\
|
|
|
|
linkits7688d|\
|
|
|
|
miwifi-nano|\
|
|
|
|
sk-wb8|\
|
|
|
|
wsr-1166|\
|
|
|
|
wsr-600|\
|
2016-06-19 14:22:23 +00:00
|
|
|
zbt-wg2626)
|
2013-02-02 17:01:52 +00:00
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x10000"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2012-08-29 10:37:32 +00:00
|
|
|
config_load ubootenv
|
|
|
|
config_foreach ubootenv_add_app_config ubootenv
|
|
|
|
|
|
|
|
exit 0
|