aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-envtools/files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-14 19:46:43 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-14 19:46:43 +0000
commitd99e8c2a5b7244f4780447e544441b54120bedb2 (patch)
treebead17238713333e09b3e2062d74ac65d512e522 /package/boot/uboot-envtools/files
parent73ef94f400a6601a61ca50ac62f80f4e6317ae73 (diff)
downloadmaster-187ad058-d99e8c2a5b7244f4780447e544441b54120bedb2.tar.gz
master-187ad058-d99e8c2a5b7244f4780447e544441b54120bedb2.tar.bz2
master-187ad058-d99e8c2a5b7244f4780447e544441b54120bedb2.zip
[package] 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38403 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/boot/uboot-envtools/files')
-rw-r--r--package/boot/uboot-envtools/files/kirkwood9
1 files changed, 3 insertions, 6 deletions
diff --git a/package/boot/uboot-envtools/files/kirkwood b/package/boot/uboot-envtools/files/kirkwood
index cad53aa379..f665d2d1e2 100644
--- a/package/boot/uboot-envtools/files/kirkwood
+++ b/package/boot/uboot-envtools/files/kirkwood
@@ -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