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

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

fix

File size: 1014 bytes
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4model=`cat /etc/model`
5echo""
6echo "Checking your Boxtype...."
7echo "Some Plugins will not work correctly on your $model!"
8echo ""
9if [ "$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
13else
14 echo "Boxtype: $model OK"
15fi
16
17echo "checking install path"
18if [ ! -d "$INSTDIR/bin/" ]; then
19 echo "--------------------------"
20 echo "no install path found...."
21 echo "--------------------------"
22 exit 1
23fi
24echo "install path found...."
25
26if [ "/var/swap" == "$INSTDIR" ]; then
27 echo "syncing disk"
28 sync
29fi
30
31buildgroup=`cat /etc/.buildgroup`
32echo "checking OS"
33if [ `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
40fi
41echo "installing Oscam Build 6089..."
42
43exit 0
Note: See TracBrowser for help on using the repository browser.