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/swapemus_camd3_3_902/CONTROL/postrm

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