summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-03-28 23:21:28 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-03-28 23:21:28 +0200
commit2e006cc96290a7728df34a6c8e8396435e8a8c5f (patch)
tree4dd1ca5277e91b9d630ab43ee49820960f36adb5 /package/base-files
parent0a5a07f8885ca8c129410571fd481465f0e3d489 (diff)
implement adkupdate for ag241, add kernel patches for 2.6.33.1
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