diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-07 20:15:25 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-07 20:15:25 +0100 |
commit | 10997d993a55465525b026b9404f5809687e9e3c (patch) | |
tree | 3ddb6900b5c1b3791c67430fa27956fd31857a5e /package/base-files/extra | |
parent | 2e44499238125dbecbbf17222496ebba315cc90c (diff) |
implement adkupdate and adkinstall for rb532 boards
Diffstat (limited to 'package/base-files/extra')
-rwxr-xr-x | package/base-files/extra/sbin/adkupdate | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/extra/sbin/adkupdate b/package/base-files/extra/sbin/adkupdate index d41e23a0f..db1dfb73a 100755 --- a/package/base-files/extra/sbin/adkupdate +++ b/package/base-files/extra/sbin/adkupdate @@ -12,6 +12,8 @@ else updatecmd="gunzip -c | tar -xf -" fi +system=$(awk '/system type/ { print $5 }' /proc/cpuinfo 2>/dev/null) + check_exit() { if [ $? -ne 0 ];then echo "Update failed." @@ -23,6 +25,9 @@ prepare() { cd / umount -f /etc mount -o remount,rw / + if [ "$system" == "RB532" ];then + mount -t yaffs2 /dev/mtdblock0 /boot + fi } extract_from_file() { |