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
|
2016-12-13 21:30:11 +00:00
|
|
|
all0239-3g|\
|
|
|
|
all0256n|\
|
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
|
|
|
br6425|\
|
|
|
|
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
|