Ignore:
Timestamp:
Sep 7, 2013, 2:14:36 PM (13 years ago)
Author:
nit
Message:

fix

File:
1 edited

Legend:

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

    r23365 r23370  
    11#!/bin/sh
    2 INSTDIR="$1"
    3 
    4 if [ "/var/swap" == "$INSTDIR" ]; then
    5         echo "syncing disk"
    6         sync
    7 fi
    8 
    9 model=`cat /etc/model`
    10 echo""
    11 echo "Checking your Boxtype...."
    12 echo "Some Plugins will not work correctly on your $model!"
    13 echo ""
    14 if [ "$model" = "" ]; then
    15         echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    16         echo "Aborting installation..."
    17         exit 1
    18 else
    19         echo "Boxtype: $model OK"
    20 fi
    21 
    22 buildgroup=`cat /etc/.buildgroup`
    23 echo "checking OS"       
    24 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    25         echo ---------------------------                 
    26         echo DONT USE this IPK Package!!                 
    27         echo ---                 
    28         echo Only for $buildgroup Image!!               
    29         echo ---------------------------                 
    30         exit 1           
    31 fi 
    322
    333echo "installing font ..."
Note: See TracChangeset for help on using the changeset viewer.