Use common function ubootenv_add_mmc Signed-off-by: Paweł Owoc <frut3k7@gmail.com> Link: https://github.com/openwrt/openwrt/pull/19269 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
19 lines
309 B
Text
19 lines
309 B
Text
[ -e /etc/config/ubootenv ] && exit 0
|
|
|
|
touch /etc/config/ubootenv
|
|
|
|
. /lib/uboot-envtools.sh
|
|
. /lib/functions.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
8devices,kiwi-dvk)
|
|
ubootenv_add_mmc "0:APPSBLENV" "" "0x0" "0x40000" "0x40000"
|
|
;;
|
|
esac
|
|
|
|
config_load ubootenv
|
|
config_foreach ubootenv_add_app_config
|
|
|
|
exit 0
|