Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | TMP=/tmp/.feeds |
---|
4 | echo "syncing disk" |
---|
5 | sync |
---|
6 | |
---|
7 | rm -r /var/etc/ipkg/official-feed.conf |
---|
8 | |
---|
9 | model=`cat /etc/model` |
---|
10 | echo"" |
---|
11 | echo "Checking your Boxtype...." |
---|
12 | echo "Some Plugins will not work correctly on your $model!" |
---|
13 | echo "" |
---|
14 | if [ "$model" = "" ]; then |
---|
15 | echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!" |
---|
16 | echo "Aborting installation..." |
---|
17 | exit 1 |
---|
18 | else |
---|
19 | echo "Boxtype: $model OK" |
---|
20 | fi |
---|
21 | |
---|
22 | |
---|
23 | echo "installing new Downloadfeed for Enigma2 Plugins" |
---|
24 | echo "checking OS" |
---|
25 | if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then |
---|
26 | echo --------------------------- |
---|
27 | echo DONT USE this IPK Package!! |
---|
28 | echo --- |
---|
29 | echo Only for AAF Image!! |
---|
30 | echo --------------------------- |
---|
31 | exit 1 |
---|
32 | fi |
---|
33 | |
---|
34 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.