Changeset 17917
- Timestamp:
- Sep 16, 2012, 2:19:59 PM (14 years ago)
- Location:
- ipk/source.sh4/titansettings_default_sat_1_0/CONTROL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/postinst
r17828 r17917 1 1 #!/bin/sh 2 3 #del old bouquet entrys 4 oldbouquets=`cat /tmp/bouquets.cfg` 5 oldifs=$IFS 6 IFS=' 7 ' 8 for line in $oldbouquets; do 9 file=`echo "$line" | cut -d "#" -f3` 10 grep "#$file" /var/etc/titan/bouquets.cfg > /dev/null 11 if [ $? -ne 0 ]; then 12 rm "$file" 13 fi 14 done 15 IFS=$oldifs 16 rm /tmp/bouquets.cfg 17 2 18 TMP=/tmp/.set 3 19 echo "successfully installed" -
ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/preinst
r17828 r17917 31 31 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 32 32 FREE=`expr $SPACE - 100` 33 SIZE= 27033 SIZE=508 34 34 echo "checking freespace" 35 35 echo packege size $SIZE kb … … 46 46 fi 47 47 48 echo "remove /var/etc/titan/bouquets.*" 49 rm -rf /var/etc/titan/bouquets.* > /dev/null 2>&1 50 echo "remove /var/etc/titan/channel" 51 rm -rf /var/etc/titan/channel > /dev/null 2>&1 52 echo "remove /var/etc/titan/provider" 53 rm -rf /var/etc/titan/provider > /dev/null 2>&1 54 echo "remove /var/etc/titan/satellites" 55 rm -rf /var/etc/titan/satellites > /dev/null 2>&1 56 echo "remove /var/etc/titan/transponder" 57 rm -rf /var/etc/titan/transponder > /dev/null 2>&1 48 #echo "remove /var/etc/titan/bouquets.*" 49 #rm -rf /var/etc/titan/bouquets.* > /dev/null 2>&1 50 #echo "remove /var/etc/titan/channel" 51 #rm -rf /var/etc/titan/channel > /dev/null 2>&1 52 #echo "remove /var/etc/titan/provider" 53 #rm -rf /var/etc/titan/provider > /dev/null 2>&1 54 #echo "remove /var/etc/titan/satellites" 55 #rm -rf /var/etc/titan/satellites > /dev/null 2>&1 56 #echo "remove /var/etc/titan/transponder" 57 #rm -rf /var/etc/titan/transponder > /dev/null 2>&1 58 cp /var/etc/titan/bouquets.cfg /tmp/bouquets.cfg 58 59 59 60 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)