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