Changeset 23298 for ipk/source.sh4/swapemus_oscam_6089/CONTROL/postrm
- Timestamp:
- Sep 6, 2013, 7:35:22 PM (13 years ago)
- File:
-
- 1 edited
-
ipk/source.sh4/swapemus_oscam_6089/CONTROL/postrm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/swapemus_oscam_6089/CONTROL/postrm
r23015 r23298 1 1 #!/bin/sh 2 2 TMP=/tmp/.oscam 3 INSTDIR="$1" 3 4 4 rm -r /var/swap/bin/oscam_6089_swap5 rm -r "$INSTDIR/bin/oscam_6089_swap" 5 6 6 7 echo "successfully removed" 7 link=`readlink /var/swap` 8 if [ `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` 8 if [ "/var/swap" == "$INSTDIR" ]; then 9 echo "syncing disk" 10 sync 11 else 12 SPACE=`getfreespace "$INSTDIR"` 10 13 FREE=`expr $SPACE - 100` 11 14 echo new freespace size $FREE kb 12 else13 echo "syncing disk"14 sync15 15 fi 16 16 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)