source: ipk/source.sh4/swapplayers_partnerbox_1_0/CONTROL/preinst@ 11789

Last change on this file since 11789 was 11789, checked in by madie, 14 years ago

[ipk] add bildgroup check

  • Property svn:executable set to *
File size: 999 bytes
Line 
1#!/bin/sh
2#
3TMP=/tmp/.swappartnerbox
4echo "syncing disk"
5sync
6
7model=`cat /etc/model`
8
9echo""
10echo "Checking your Boxtype...."
11echo "Some Plugins will not work correctly on your $model!"
12echo ""
13if [ "$model" = "" ]; then
14 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
15 echo "Aborting installation..."
16 exit 1
17else
18 echo "Boxtype: $model OK"
19fi
20
21echo "checking swapstick"
22if [ ! -d /var/swap/extensions/ ]; then
23 echo "--------------------------"
24 echo "no swapstick found...."
25 echo "--------------------------"
26 exit 1
27fi
28echo "swapstick found...."
29echo "installing Swap PartnerBox plugin to swapstick..."
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 IPK Package!!
36 echo ---
37 echo Only for $buildgroup Image!!
38 echo ---------------------------
39 exit 1
40fi
41exit 0
Note: See TracBrowser for help on using the repository browser.