Improved maemo upgrade scripts and added 0.16.0 maemo release description

This commit is contained in:
Xawotihs
2011-07-19 21:32:56 +00:00
parent e09fe7570e
commit ace236e6a3
4 changed files with 22 additions and 15 deletions

View File

@@ -11,12 +11,11 @@ if grep -q /home/user/MyDocs /proc/mounts; then
dirSize=`du -s /home/user/wagic/Res | awk '{print $1}'`
# Size available on the FAT partition
avaSize=`df | grep /dev/mmcblk0p1 | awk '{print $4}'`
if [ /home/user/wagic/Res/sets/primitives/mtg.txt -nt /home/user/MyDocs/wagic/Res/sets/primitives/mtg.txt ];
then if [ $avaSize -gt $dirSize ]
then
echo "Copying resources on the FAT partition to ease customization"
cp -rf /home/user/wagic/Res/* /home/user/MyDocs/wagic/Res
fi
if [ $avaSize -gt $dirSize ] ; then
echo "Copying resources on the FAT partition"
cp -rf /home/user/wagic/Res/* /home/user/MyDocs/wagic/Res
else
echo "Not enough space on FAT partition"
fi
fi