Ignore:
Timestamp:
Jul 31, 2010, 8:06:33 PM (16 years ago)
Author:
civer
Message:

[IPK /oreinst ]

  • added boxtype check to preinst (finished)
File:
1 edited

Legend:

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

    r521 r3682  
    44echo "syncing disk"
    55sync
     6
     7model=`cat /etc/model`
     8echo""
     9echo "Checking your Boxtype...."
     10echo "Some Plugins will not work correctly on your $model!"
     11echo ""
     12if [ "$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
     16else
     17        echo "Boxtype: $model OK"
     18fi
     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`
Note: See TracChangeset for help on using the changeset viewer.