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

Last change on this file since 8782 was 7451, checked in by BPanther, 15 years ago

[ipk] - copy source->source.sh4

  • Property svn:executable set to *
File size: 933 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..."
30echo "checking OS"
31if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
32 echo ---------------------------
33 echo DONT USE this IPK Package!!
34 echo ---
35 echo Only for AAF Image!!
36 echo ---------------------------
37 exit 1
38fi
39exit 0
Note: See TracBrowser for help on using the repository browser.