Changeset 17907
- Timestamp:
- Sep 16, 2012, 12:49:35 PM (14 years ago)
- Location:
- ipk/source.sh4/titansettings_old_default_sat_1_0/CONTROL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titansettings_old_default_sat_1_0/CONTROL/postinst
r12781 r17907 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 echo 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_old_default_sat_1_0/CONTROL/preinst
r12781 r17907 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)