openwrtv3/package/boot/uboot-envtools/files/oxnas
Hauke Mehrtens 012da658a4 oxnas: add support for Akitio MyCloud mini
Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 49197
2016-04-19 20:12:41 +00:00

28 lines
472 B
Bash

#!/bin/sh
#
# Copyright (C) 2013 OpenWrt.org
#
[ -e /etc/config/ubootenv ] && exit 0
touch /etc/config/ubootenv
. /lib/oxnas.sh
. /lib/uboot-envtools.sh
. /lib/functions.sh
board=$(oxnas_board_name)
case "$board" in
akitio | \
stg212 | \
kd20)
ubootenv_add_uci_config "/dev/ubi0_0" "0x0" "0x4000" "0x1F000" "1"
ubootenv_add_uci_config "/dev/ubi0_1" "0x0" "0x4000" "0x1F000" "1"
;;
esac
config_load ubootenv
config_foreach ubootenv_add_app_config ubootenv
exit 0