Ignore:
Timestamp:
Jul 31, 2010, 5:43:07 PM (16 years ago)
Author:
civer
Message:

[IPKs /preinst]

  • added boxtype check to more IPKs
File:
1 edited

Legend:

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

    r3359 r3680  
    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
    619
    720if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
Note: See TracChangeset for help on using the changeset viewer.