Ignore:
Timestamp:
Jul 31, 2010, 4:47:48 PM (16 years ago)
Author:
civer
Message:

[IPK / bootlogos]

  • started adding model type Question to IPKs beceuase some Plugins doesn`t work on some Boxtypes...!
  • all other IPKs will follow
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/bootlogos_fantasygirl_0_1/CONTROL/preinst

    r2779 r3679  
    44echo "syncing disk"
    55sync
     6
     7model=`cat /etc/model`
     8        echo""
     9        echo "Checking your Boxtype...."
     10        echo "Some Plugins will not work correctly on your $model!"
     11        echo ""
     12        if [ "$model" = "" ]; then
     13                echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
     14                echo "Aborting installation..."
     15                exit 1
     16        else
     17                echo "$model OK"
     18        fi
     19
    620if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
    721        SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
    822        FREE=`expr $SPACE - 100`
    923        SIZE=56
    10         echo "check freespace"
     24        echo "checking freespace"
    1125        echo packege size $SIZE kb
    1226        echo freespace size $FREE kb
    1327        if  [ "$FREE" -lt "$SIZE" ]; then
    14                 echo "sorry no freespace on device"
     28                echo "sorry no freespace left on device"
    1529                exit 1
    1630        else
    17                 echo ok
     31                echo freespace ok
    1832        fi
    1933fi   
    20 echo "install bootlogo ..."
     34echo "installing bootlogo ..."
    2135echo "checking OS"
    2236if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then                     
Note: See TracChangeset for help on using the changeset viewer.