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/system_mini_fo_0_1/CONTROL/preinst

    r521 r3682  
    1010        exit 1
    1111fi
     12
     13model=`cat /etc/model`
     14echo""
     15echo "Checking your Boxtype...."
     16echo "Some Plugins will not work correctly on your $model!"
     17echo ""
     18if [ "$model" = "" ]; then
     19        echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
     20        echo "Aborting installation..."
     21        exit 1
     22else
     23        echo "Boxtype: $model OK"
     24fi
     25
    1226if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
    1327        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.