Ignore:
Timestamp:
Aug 17, 2010, 12:19:56 PM (16 years ago)
Author:
civer
Message:

[IPK]

  • rm incubus 0.55
  • small changes in Picon installation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/picons_HD_astra19.2_1_0/CONTROL/preinst

    r3786 r3789  
    2121        echo "detected USB Image...."
    2222        echo "ok..."
    23 elif [ "$model" = "ufs912" ]; then
     23elif [ "$model" = "ufs912" ] || [ "$model" = "at7000" ] || [ "$model" = "at700" ]; then
    2424        echo "detected Boxtype : $model...."
    2525        echo "ok..."
     26        if [ `ls -la /var/usr/local/share/enigma2 | grep "/var/swap/picon" | wc -l` -ge 1 ]; then
     27                echo "check ok...installing to swap...."
     28        else
     29                if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
     30                        SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
     31                        FREE=`expr $SPACE - 100`
     32                        SIZE=4150
     33                        echo "checking freespace in flash"
     34                        echo packege size $SIZE kb
     35                        echo freespace size $FREE kb
     36                        if  [ "$FREE" -lt "$SIZE" ]; then
     37                                echo "sorry no freespace left on device"
     38                                echo "ERROR: this package will not fit in your flash..."
     39                                echo "...you need a swapstick to install the package on your $model...!"
     40                                echo "aborting installation..."
     41                                exit 1
     42                        else
     43                                echo freespace ok
     44                        fi
     45                fi
     46        fi
    2647else
    2748        if [ `ls -la /var/usr/local/share/enigma2 | grep "/var/swap/picon" | wc -l` -ge 1 ]; then
Note: See TracChangeset for help on using the changeset viewer.