2
0
forked from Ivasoft/openwrt

uboot-envtools: update kirkwood scripts

Also, scripts can be installed as data so let's change that here too.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38403
This commit is contained in:
Luka Perkov
2013-10-14 19:46:43 +00:00
parent 73246d2f64
commit c15bec4a1b
2 changed files with 10 additions and 13 deletions

View File

@@ -1,20 +1,17 @@
#!/bin/sh
#
# Copyright (C) 2012 OpenWrt.org
# Copyright (C) 2012-2013 OpenWrt.org
#
[ -e /etc/config/ubootenv ] && exit 0
touch /etc/config/ubootenv
. /lib/kirkwood.sh
. /lib/uboot-envtools.sh
. /lib/functions.sh
hardware=$(kirkwood_hardware_name)
case "$hardware" in
"RaidSonic ICY BOX IB-NAS6210")
case "`cat /proc/device-tree/model`" in
"RaidSonic ICY BOX IB-NAS62x0 (Rev B)")
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
;;
esac