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/ramips.sh
|
|
|
|
. /lib/uboot-envtools.sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
|
|
|
|
board=$(ramips_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
all0239-3g | \
|
|
|
|
all0256n | \
|
|
|
|
all5002)
|
|
|
|
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
|
|
|
|
;;
|
2015-10-19 10:07:38 +00:00
|
|
|
linkits7688 | \
|
2015-11-18 15:00:38 +00:00
|
|
|
linkits7688d | \
|
2015-03-19 21:00:41 +00:00
|
|
|
wsr-600 | \
|
|
|
|
wsr-1166 | \
|
2016-03-16 09:26:48 +00:00
|
|
|
br6425 | \
|
2016-05-10 16:17:54 +00:00
|
|
|
miwifi-nano | \
|
2016-06-19 14:22:23 +00:00
|
|
|
sk-wb8 | \
|
|
|
|
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
|