Fixed issue 630

This commit is contained in:
Xawotihs
2011-04-16 17:43:33 +00:00
parent 8bff724ac1
commit 16bac823fe
3 changed files with 6 additions and 10 deletions
+1 -3
View File
@@ -7,13 +7,11 @@ if grep -q /home/user/MyDocs /proc/mounts; then
# FAT partition mounted
mkdir -p /home/user/MyDocs/wagic
mkdir -p /home/user/MyDocs/wagic/Res
# Size used on the FAT partition
usedSize=`du -s /home/user/MyDocs/wagic/Res | awk '{print $1}'`
# Size needed on the FAT partition
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 [ $usedSize -lt 100 ]
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"