Changeset 12781 for ipk/source.sh4/swapemus_oscam_5168
- Timestamp:
- Jan 4, 2012, 7:46:39 AM (14 years ago)
- Location:
- ipk/source.sh4/swapemus_oscam_5168/CONTROL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/swapemus_oscam_5168/CONTROL/postinst
r7451 r12781 79 79 80 80 echo "successfully installed" 81 echo "syncing disk" 82 83 sync 81 link=`readlink /var/swap` 82 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 83 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 84 FREE=`expr $SPACE - 100` 85 echo new freespace size $FREE kb 86 else 87 echo "syncing disk" 88 sync 89 fi 84 90 exit 0 -
ipk/source.sh4/swapemus_oscam_5168/CONTROL/postrm
r7451 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/swapemus_oscam_5168/CONTROL/preinst
r11789 r12781 2 2 # 3 3 TMP=/tmp/.oscam 4 echo "syncing disk"5 sync6 4 7 5 model=`cat /etc/model` … … 27 25 echo "swapstick found...." 28 26 echo "installing Oscam 5168 to swapstick..." 29 27 link=`readlink /var/swap` 28 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 29 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 30 FREE=`expr $SPACE - 100` 31 SIZE=780 32 echo "checking freespace" 33 echo packege size $SIZE kb 34 echo freespace size $FREE kb 35 if [ "$FREE" -lt "$SIZE" ]; then 36 echo "sorry no freespace left on device" 37 exit 1 38 else 39 echo ok 40 fi 41 else 42 echo "syncing disk" 43 sync 44 fi 30 45 buildgroup=`cat /etc/.buildgroup` 31 46 echo "checking OS" … … 39 54 fi 40 55 41 sync42 43 56 exit 0 -
ipk/source.sh4/swapemus_oscam_5168/CONTROL/prerm
r7451 r12781 1 1 #!/bin/sh 2 2 TMP=/tmp/.oscam 3 echo "syncing disk"4 3 5 4 if [ ! -e /var/swap/keys/oscam.conf.oscam ]; then
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)