source: ipk/source/swapplayers_mytube_1_0/CONTROL/preinst@ 4064

Last change on this file since 4064 was 4064, checked in by civer, 16 years ago

[IPK ]

  • added players-mytube
  • added swapplayers-MyTube

fixed some paths....

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/sh
2#
3TMP=/tmp/.players
4echo "syncing disk"
5sync
6
7model=`cat /etc/model`
8
9if uname -a | grep -q "stm22"; then
10 linuxver="stm22"
11fi
12
13echo""
14echo "Checking STM type...."
15echo "This plugin will only work on a stm22 based image...."
16if [ "$linuxver" != "stm22" ]; then
17 echo "Sorry! This Plugin is not available for your image because it will not work correctly!!!"
18 echo "Aborting installation..."
19 exit 1
20else
21 echo "Imagetype: $linuxver OK"
22fi
23
24echo""
25echo "Checking your Boxtype...."
26echo "Some Plugins will not work correctly on your $model!"
27echo ""
28if [ "$model" = "" ]; then
29 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
30 echo "Aborting installation..."
31 exit 1
32else
33 echo "Boxtype: $model OK"
34fi
35
36echo "checking swapstick"
37if [ ! -d /var/swap/extensions/ ]; then
38 echo "--------------------------"
39 echo "no swapstick found...."
40 echo "--------------------------"
41 exit 1
42fi
43echo "swapstick found...."
44echo "installing MyTube plugin to swapstick..."
45echo "checking OS"
46if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
47 echo ---------------------------
48 echo DONT USE this IPK Package!!
49 echo ---
50 echo Only for AAF Image!!
51 echo ---------------------------
52 exit 1
53fi
54exit 0
Note: See TracBrowser for help on using the repository browser.