diff options
author | Luka Perkov <luka@openwrt.org> | 2013-10-14 19:46:43 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-10-14 19:46:43 +0000 |
commit | c15bec4a1b1763523a7758a8be526195386fe36c (patch) | |
tree | 15c47b09b9d58d49f2d461bb55181213af190628 /package/boot/uboot-envtools/files/kirkwood | |
parent | 73246d2f646eec821ad59a2c9177ac3e0b2e75fd (diff) | |
download | upstream-c15bec4a1b1763523a7758a8be526195386fe36c.tar.gz upstream-c15bec4a1b1763523a7758a8be526195386fe36c.tar.bz2 upstream-c15bec4a1b1763523a7758a8be526195386fe36c.zip |
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
Diffstat (limited to 'package/boot/uboot-envtools/files/kirkwood')
-rw-r--r-- | package/boot/uboot-envtools/files/kirkwood | 9 |
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 |