source: ipk/source/settings_unitymedia/CONTROL/preinst@ 8758

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

[ipk] - copy source->source.sh4

File size: 1.0 KB
Line 
1#!/bin/sh
2#
3TMP=/tmp/.set
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" != "at7500" ]; 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
20echo "installing settings ..."
21echo "checking OS"
22if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
23 echo ---------------------------
24 echo DONT USE this IPK Package!!
25 echo ---
26 echo Only for AAF Image!!
27 echo ---------------------------
28 exit 1
29fi
30
31echo "remove /etc/enigma2/*.tv"
32rm -rf /etc/enigma2/*.tv
33echo "remove /etc/enigma2/*.radio"
34rm -rf /etc/enigma2/*.radio
35echo "remove /etc/enigma2/satellites.xml"
36rm -rf /etc/enigma2/satellites.xml
37echo "remove /etc/enigma2/lamedb"
38rm -rf /etc/enigma2/lamedb
39echo "remove /etc/enigma2/userbouquet.*"
40rm -rf /etc/enigma2/userbouquet.*
41
42exit 0
Note: See TracBrowser for help on using the repository browser.