Changeset 23366 for ipk/source.sh4/titangames_catcatch/CONTROL/postrm
- Timestamp:
- Sep 7, 2013, 1:42:36 PM (13 years ago)
- File:
-
- 1 edited
-
ipk/source.sh4/titangames_catcatch/CONTROL/postrm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titangames_catcatch/CONTROL/postrm
r16975 r23366 1 1 #!/bin/sh 2 TMP=/tmp/.games 3 PLUGINDIR=/var/usr/local/share/titan/plugins/catcatch 4 rm -r $PLUGINDIR > /dev/null 2>&1 2 INSTDIR="$1" 5 3 6 4 echo "successfully removed" 7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 5 if [ "/var/swap" == "$INSTDIR" ]; then 6 echo "syncing disk" 7 sync 8 else 9 SPACE=`getfreespace "$INSTDIR"` 9 10 FREE=`expr $SPACE - 100` 10 11 echo new freespace size $FREE kb 11 else12 echo "syncing disk"13 sync14 12 fi 15 13 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)