Changeset 12781 for ipk/source.sh4/titanswappicons_gold/CONTROL/preinst
- Timestamp:
- Jan 4, 2012, 7:46:39 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswappicons_gold/CONTROL/preinst
r12642 r12781 26 26 fi 27 27 echo "swapstick found...." 28 28 link=`readlink /var/swap` 29 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 30 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 31 FREE=`expr $SPACE - 100` 32 SIZE=5880 33 echo "checking freespace" 34 echo packege size $SIZE kb 35 echo freespace size $FREE kb 36 if [ "$FREE" -lt "$SIZE" ]; then 37 echo "sorry no freespace left on device" 38 exit 1 39 else 40 echo ok 41 fi 42 else 43 echo "syncing disk" 44 sync 45 fi 29 46 buildgroup=`cat /etc/.buildgroup` 30 47 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)