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

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/swapemus_oscam_6089/CONTROL/preinst

    r23366 r23371  
    11#!/bin/sh
    2 INSTDIR="$1"
    32
    4 model=`cat /etc/model`
    5 echo""
    6 echo "Checking your Boxtype...."
    7 echo "Some Plugins will not work correctly on your $model!"
    8 echo ""
    9 if [ "$model" = "" ]; then
    10         echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
    11         echo "Aborting installation..."
    12         exit 1
    13 else
    14         echo "Boxtype: $model OK"
    15 fi
    16 
    17 echo "checking install path"
    18 if [ ! -d "$INSTDIR/bin/" ]; then
    19   echo "--------------------------"
    20         echo "no install path found...."
    21         echo "--------------------------"
    22         exit 1
    23 fi
    24 echo "install path found...."
    25 
    26 if [ "/var/swap" == "$INSTDIR" ]; then
    27         echo "syncing disk"
    28         sync
    29 fi
    30 
    31 buildgroup=`cat /etc/.buildgroup`
    32 echo "checking OS"       
    33 if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then               
    34         echo ---------------------------                 
    35         echo DONT USE this TPK Package!!                 
    36         echo ---                 
    37         echo Only for $buildgroup Image!!               
    38         echo ---------------------------                 
    39         exit 1           
    40 fi
    413echo "installing Oscam Build 6089..."
    42 
    434exit 0
Note: See TracChangeset for help on using the changeset viewer.