Changeset 17917


Ignore:
Timestamp:
Sep 16, 2012, 2:19:59 PM (14 years ago)
Author:
andy-1
Message:

fix install default Settings

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  
    11#!/bin/sh
     2
     3#del old bouquet entrys
     4oldbouquets=`cat /tmp/bouquets.cfg`
     5oldifs=$IFS
     6IFS='
     7'
     8for 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
     14done
     15IFS=$oldifs
     16rm /tmp/bouquets.cfg
     17
    218TMP=/tmp/.set
    319echo "successfully installed"
  • ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/preinst

    r17828 r17917  
    3131        SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    3232        FREE=`expr $SPACE - 100`
    33         SIZE=270
     33        SIZE=508
    3434        echo "checking freespace"
    3535        echo packege size $SIZE kb
     
    4646fi
    4747
    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
     58cp /var/etc/titan/bouquets.cfg /tmp/bouquets.cfg
    5859
    5960exit 0
Note: See TracChangeset for help on using the changeset viewer.