Changeset 23442 for ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL
- Timestamp:
- Sep 8, 2013, 11:23:17 AM (13 years ago)
- Location:
- ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/control
r23139 r23442 12 12 Group: 100 13 13 Showname: Settings Kabel BW (sofatester) 14 Usepath: /var -
ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/postinst
r21551 r23442 1 1 #!/bin/sh 2 TMP=/tmp/.set 3 echo "successfully installed" 4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 5 SPACE=`df | grep /dev/mtdblock | grep var | 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 2 12 3 touch /tmp/.tpk_needs_reboot 4 13 5 exit 0 -
ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/postrm
r21833 r23442 1 1 #!/bin/sh 2 TMP=/tmp/.set3 2 4 3 echo "remove /mnt/settings/bouquets.*" … … 10 9 rm -f /mnt/settings/epgchannel 11 10 12 echo "successfully removed"13 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then14 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`15 FREE=`expr $SPACE - 100`16 echo new freespace size $FREE kb17 else18 echo "syncing disk"19 sync20 fi21 22 11 echo "restore default settings" 23 12 cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings … … 28 17 29 18 touch /tmp/.tpk_needs_reboot 19 30 20 exit 0 -
ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/preinst
r21833 r23442 1 1 #!/bin/sh 2 #3 TMP=/tmp/.set4 2 5 echo "installing settings ..." 6 buildgroup=`cat /etc/.buildgroup` 7 echo "checking OS" 8 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 9 echo --------------------------- 10 echo DONT USE this TPK Package!! 11 echo --- 12 echo Only for $buildgroup Image!! 13 echo --------------------------- 14 exit 1 15 fi 16 17 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 18 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 19 FREE=`expr $SPACE - 100` 20 SIZE=50 21 echo "checking freespace" 22 echo packege size $SIZE kb 23 echo freespace size $FREE kb 24 if [ "$FREE" -lt "$SIZE" ]; then 25 echo "sorry no freespace left on device" 26 exit 1 27 else 28 echo ok 29 fi 30 else 31 echo "syncing disk" 32 sync 33 fi 34 35 if [ -e /tmp/.tpk_upgrade_start ];then 3 if [ -e /tmp/.tpk_upgrade_start ]; then 36 4 echo "tpk upgrade skip settings" 37 5 exit 1 -
ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/prerm
r18194 r23442 1 1 #!/bin/sh 2 TMP=/tmp/.set 3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 4 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 5 FREE=`expr $SPACE - 100` 6 echo new freespace size $FREE kb 7 else 8 echo "syncing disk" 9 sync 10 fi 11 echo "removing settings" 2 12 3 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)