summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2005-09-13 15:59:27 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-09-13 15:59:27 +0000
commit251e6680813f6c691ccf0d9a4862020e229704fd (patch)
tree62b8ba888ecaf845029cf220739b97072f32a221
parentb592ec4ea4cb7b57edc8b9f2953a336209fde60c (diff)
zaurus-updater: Fix some paths. Bad RP. Thanks to gridzero for pointing it out. Also remove code that looks like it would wipe the memory card upon failre?\!
-rwxr-xr-xpackages/zaurus-updater/spitz/updater.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/zaurus-updater/spitz/updater.sh b/packages/zaurus-updater/spitz/updater.sh
index a0483a1371..07d81b1bda 100755
--- a/packages/zaurus-updater/spitz/updater.sh
+++ b/packages/zaurus-updater/spitz/updater.sh
@@ -44,7 +44,6 @@ Cleanup(){
rm -f $VTMPNAME > /dev/null 2>&1
rm -f $MTMPNAME > /dev/null 2>&1
rm $CTRLPATH/* > /dev/null 2>&1
- rm $DATAPATH/* > /dev/null 2>&1
exit $1
}
trap 'Cleanup 1' 1 15
@@ -95,9 +94,9 @@ fi
### Check that we have a valid tar
for TARNAME in gnu-tar GNU-TAR
do
- if [ -e /mnt/cf/$TARNAME ]
+ if [ -e $DATAPATH/$TARNAME ]
then
- TARBIN=/mnt/cf/$TARNAME
+ TARBIN=$DATAPATH/$TARNAME
fi
done