Changeset 12781 for ipk/source.sh4/titanswapskins_default_grey
- Timestamp:
- Jan 4, 2012, 7:46:39 AM (14 years ago)
- Location:
- ipk/source.sh4/titanswapskins_default_grey/CONTROL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswapskins_default_grey/CONTROL/postinst
r11034 r12781 2 2 TMP=/tmp/.skin 3 3 echo "successfully installed" 4 echo "syncing disk" 4 link=`readlink /var/swap` 5 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 6 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 7 FREE=`expr $SPACE - 100` 8 echo new freespace size $FREE kb 9 else 10 echo "syncing disk" 11 sync 12 fi 5 13 echo "now you can choose the new skin...." 6 sync7 14 exit 0 -
ipk/source.sh4/titanswapskins_default_grey/CONTROL/postrm
r11034 r12781 5 5 6 6 echo "successfully removed" 7 echo "syncing disk" 8 sync 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` 10 FREE=`expr $SPACE - 100` 11 echo new freespace size $FREE kb 12 else 13 echo "syncing disk" 14 sync 15 fi 9 16 exit 0 -
ipk/source.sh4/titanswapskins_default_grey/CONTROL/preinst
r11782 r12781 2 2 # 3 3 TMP=/tmp/.skin 4 echo "syncing disk"5 sync6 4 7 5 model=`cat /etc/model` … … 26 24 fi 27 25 echo "swapstick found...." 28 26 link=`readlink /var/swap` 27 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 28 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 29 FREE=`expr $SPACE - 100` 30 SIZE=470 31 echo "checking freespace" 32 echo packege size $SIZE kb 33 echo freespace size $FREE kb 34 if [ "$FREE" -lt "$SIZE" ]; then 35 echo "sorry no freespace left on device" 36 exit 1 37 else 38 echo ok 39 fi 40 else 41 echo "syncing disk" 42 sync 43 fi 29 44 buildgroup=`cat /etc/.buildgroup` 30 45 echo "checking OS" -
ipk/source.sh4/titanswapskins_default_grey/CONTROL/prerm
r11034 r12781 1 1 #!/bin/sh 2 2 TMP=/tmp/.skin 3 echo "syncing disk" 4 sync 3 link=`readlink /var/swap` 4 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 5 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 6 FREE=`expr $SPACE - 100` 7 echo new freespace size $FREE kb 8 else 9 echo "syncing disk" 10 sync 11 fi 5 12 echo "removing default_grey Skin from swapstick" 6 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)