summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:06:29 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:06:29 +0200
commit4d569ed1a3305c7b7abe8fa4273cea3b559cc85a (patch)
tree7ad8952e59f53a23bcba0ee92086cd8adb96799c /package/base-files
parent8c3ac66ed98ec86d0917078b4aab0e3e6df16cd3 (diff)
parentca760844fcd08190b692a674ff387fe15c39a497 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/src/sbin/adkupdate9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/base-files/src/sbin/adkupdate b/package/base-files/src/sbin/adkupdate
index 8a97495ed..1af188b41 100755
--- a/package/base-files/src/sbin/adkupdate
+++ b/package/base-files/src/sbin/adkupdate
@@ -6,13 +6,18 @@ if [ $who -ne 0 ]; then
exit 1
fi
+system=$(awk '/system type/ { print $5 }' /proc/cpuinfo 2>/dev/null)
+
if [ -x /sbin/mtd ];then
- updatecmd="mtd -r write - linux"
+ if [ "$system" == "AR7" ];then
+ updatecmd="dd bs=16 skip=3 | mtd -r write - linux"
+ else
+ updatecmd="mtd -r write - linux"
+ fi
else
updatecmd="gunzip -c | tar -xf -"
fi
-system=$(awk '/system type/ { print $5 }' /proc/cpuinfo 2>/dev/null)
check_exit() {
if [ $? -ne 0 ];then