Ignore:
Timestamp:
Jan 4, 2012, 7:46:39 AM (14 years ago)
Author:
obi
Message:

[ipk] update all swap/titan flash ipks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/swapscreensaver_default_1_0/CONTROL/postrm

    r7451 r12781  
    55
    66echo "successfully removed"
    7 echo "syncing disk"
    8 sync
     7link=`readlink /var/swap`
     8if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
     9        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
     10        FREE=`expr $SPACE - 100`
     11        echo new freespace size $FREE kb
     12else
     13        echo "syncing disk"
     14        sync
     15fi
    916exit 0
Note: See TracChangeset for help on using the changeset viewer.