Ignore:
Timestamp:
Mar 1, 2013, 1:12:59 AM (13 years ago)
Author:
obi
Message:

[ipk] fix settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/titansettings_uljanow_2sat_1_0/CONTROL/preinst

    r18688 r20266  
    22#
    33TMP=/tmp/.set
    4 
    5 model=`cat /etc/model`
    6 echo""
    7 echo "Checking your Boxtype...."
    8 echo "Some Plugins will not work correctly on your $model!"
    9 echo ""
    10 if [ "$model" = "" ]; then
    11         echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    12         echo "Aborting installation..."
    13         exit 1
    14 else
    15         echo "Boxtype: $model OK"
    16 fi
    174
    185echo "installing settings ..."
     
    3118        SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    3219        FREE=`expr $SPACE - 100`
    33         SIZE=472
     20        SIZE=290
    3421        echo "checking freespace"
    3522        echo packege size $SIZE kb
     
    5138fi
    5239
    53 #echo "remove /var/etc/titan/bouquets.*"
    54 #rm -rf /var/etc/titan/bouquets.* > /dev/null 2>&1
    55 #echo "remove /var/etc/titan/channel"
    56 #rm -rf /var/etc/titan/channel > /dev/null 2>&1
    57 #echo "remove /var/etc/titan/provider"
    58 #rm -rf /var/etc/titan/provider > /dev/null 2>&1
    59 #echo "remove /var/etc/titan/satellites"
    60 #rm -rf /var/etc/titan/satellites > /dev/null 2>&1
    61 #echo "remove /var/etc/titan/transponder"
    62 #rm -rf /var/etc/titan/transponder > /dev/null 2>&1
    63 cp /var/etc/titan/bouquets.cfg /tmp/bouquets.cfg
     40rm -rf /var/etc/titan/bouquets.cfg.default
     41rm -rf /var/etc/titan/bouquets.cfg
     42rm -rf /var/etc/titan/channel.default
     43rm -rf /var/etc/titan/channel
     44rm -rf /var/etc/titan/provider.default
     45rm -rf /var/etc/titan/provider
     46rm -rf /var/etc/titan/transponder.default
     47rm -rf /var/etc/titan/transponder
     48rm -rf /var/etc/titan/satellites.default
     49rm -rf /var/etc/titan/satellites
     50
     51rm -rf /mnt/settings
    6452
    6553exit 0
Note: See TracChangeset for help on using the changeset viewer.