source: ipk/source.sh4/swapemus_oscam_6089/CONTROL/preinst@ 23356

Last change on this file since 23356 was 23349, checked in by nit, 13 years ago

fix

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