source: ipk/source/picons_HD_astra19.2_1_0/CONTROL/preinst@ 3785

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

test

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/sh
2#
3TMP=/tmp/.picon
4echo "syncing disk"
5sync
6
7model=`cat /etc/model`
8echo""
9echo "Checking your Boxtype...."
10echo "Some Plugins will not work correctly on your $model!"
11echo ""
12if [ "$model" = "" ]; then
13 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
14 echo "Aborting installation..."
15 exit 1
16else
17 echo "Boxtype: $model OK"
18fi
19
20#if [ -e /etc/.fullusb ] || [ -e /etc/.usbimage ]; then
21# echo "detected USB Image...."
22# echo "ok..."
23#elif [ "$model" = "ufs912" ]; then
24# echo "detected Boxtype : $model...."
25# echo "ok..."
26#else
27# if [ `ls -la /var/usr/local/share/enigma2 | grep "/var/swap/picon" | wc -l` -ge 1 ]; then
28# echo "check ok installing to swapstick...."
29# else
30# echo "ERROR: this package won`t fit in your flash..."
31# echo "...you need a swapstick to install the package on your $model...!"
32# echo "aborting installation..."
33# exit 1
34# fi
35#fi
36
37echo "installing hd picons for Astra 19.2..."
38echo "checking OS"
39if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
40 echo ---------------------------
41 echo DONT USE this IPK Package!!
42 echo ---
43 echo Only for AAF Image!!
44 echo ---------------------------
45 exit 1
46fi
47exit 0
Note: See TracBrowser for help on using the repository browser.