diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-12-10 11:50:46 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-12-10 11:50:46 +0000 |
commit | 3f8e414430a57ed61786de2c4e15fc579f2955a5 (patch) | |
tree | 47e31f1efd60ca013bc086fa0bcdea35c19d468e /packages/zaurus-updater/zaurus-updater | |
parent | b370618b9e62ec7edc00cbfd99168c9d314ba246 (diff) |
zaurus-updater: fixed JFFS2: wrong bitmask problems (some code needs to run only on Tosa and Poodle)
Diffstat (limited to 'packages/zaurus-updater/zaurus-updater')
-rw-r--r-- | packages/zaurus-updater/zaurus-updater/updater.sh | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/packages/zaurus-updater/zaurus-updater/updater.sh b/packages/zaurus-updater/zaurus-updater/updater.sh index ef15e47df1..38a7414c95 100644 --- a/packages/zaurus-updater/zaurus-updater/updater.sh +++ b/packages/zaurus-updater/zaurus-updater/updater.sh @@ -32,6 +32,8 @@ # # 2007.12.10 Marcin 'Hrw' Juszkiewicz # - Reformatted file - please use spaces not tabs +# - "version check" is only on Tosa and Poodle - breaks other machines +# DATAPATH=$1 TMPPATH=/tmp/update @@ -161,13 +163,15 @@ do_flashing() return fi - #check version - /sbin/bcut -s 6 -o $TMPDATA $TMPHEAD - if [ `cat $TMPDATA` != "SHARP!" ] > /dev/null 2>&1 - then - #no version info... - rm -f $TMPHEAD > /dev/null 2>&1 - DATAPOS=0 + if [ "$ZAURUS" = "tosa" ] || [ "$ZAURUS" = "poodle" ] + #check version + /sbin/bcut -s 6 -o $TMPDATA $TMPHEAD + if [ `cat $TMPDATA` != "SHARP!" ] > /dev/null 2>&1 + then + #no version info... + rm -f $TMPHEAD > /dev/null 2>&1 + DATAPOS=0 + fi fi if [ $ISFORMATTED = 0 ] |