Changeset 23366 for ipk/source.sh4/titangames_catcatch/CONTROL/preinst
- Timestamp:
- Sep 7, 2013, 1:42:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titangames_catcatch/CONTROL/preinst
r16975 r23366 1 1 #!/bin/sh 2 # 3 TMP=/tmp/.games 2 INSTDIR="$1" 4 3 5 4 model=`cat /etc/model` … … 17 16 18 17 echo "install catcatch Plugin ..." 19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 20 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 21 FREE=`expr $SPACE - 100` 22 SIZE=15 23 echo "checking freespace" 24 echo packege size $SIZE kb 25 echo freespace size $FREE kb 26 if [ "$FREE" -lt "$SIZE" ]; then 27 echo "sorry no freespace left on device" 28 exit 1 29 else 30 echo ok 31 fi 32 else 18 if [ "/var/swap" == "$INSTDIR" ]; then 33 19 echo "syncing disk" 34 20 sync 35 21 fi 22 36 23 buildgroup=`cat /etc/.buildgroup` 37 24 echo "checking OS"
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)