if [ "$FOLDER_PATH" = "" ] ; then BKDIR="$(pwd)/BACKUPS"
else BKDIR="$FOLDER_PATH/BACKUPS"; fi
echo "This script will restore missing (or newer) files to the Psion 'Internal' drive"
echo "from a previously created zip archive in $BKDIR"
[ -e "$BKDIR" ] || { echo "...But $BKDIR doesn't exist!"; read; exit; }
echo
echo "    Make sure PsiONtrack is running and connected first,"
echo "    and all Psion apps have been closed."
echo
if [ "$FOLDER_PATH" != "" ] ; then
echo "type <Enter> to continue. Click the Close gadget to abort."
else
echo "type <Enter> to continue. <ctrl-C> to abort."
fi
read
[ -e /mnt/psion ] || { echo "Psion is apparently not mounted! exiting..."; sleep 3; exit; }
cd /mnt/psion
unzip -u  "$BKDIR/Internal"
echo "==============================================="
if [ "$FOLDER_PATH" != "" ] ; then read; fi
