| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | #
|
|---|
| 3 | TMP=/tmp/.feeds
|
|---|
| 4 | echo "syncing disk"
|
|---|
| 5 | sync
|
|---|
| 6 |
|
|---|
| 7 | cp /var/etc/ipkg/official-feed.conf /var/etc/ipkg/official-feed.conf.original
|
|---|
| 8 | echo "Original Datei wird gesichert"
|
|---|
| 9 |
|
|---|
| 10 | model=`cat /etc/model`
|
|---|
| 11 | echo""
|
|---|
| 12 | echo "Überprüfung des Receivers...."
|
|---|
| 13 | echo ""
|
|---|
| 14 | if [ "$model" != "atemio500" ]; then
|
|---|
| 15 | echo "Entschuldigung! Dieses Plugin funktioniert nicht korrekt auf ihrer $model .."
|
|---|
| 16 | echo "Installation wird abgebrochen..."
|
|---|
| 17 | exit 1
|
|---|
| 18 | else
|
|---|
| 19 | echo "Boxtype: $model OK"
|
|---|
| 20 | fi
|
|---|
| 21 | buildgroup=`cat /etc/.buildgroup`
|
|---|
| 22 | echo "checking OS"
|
|---|
| 23 | if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then
|
|---|
| 24 | echo ---------------------------
|
|---|
| 25 | echo DONT USE this IPK Package!!
|
|---|
| 26 | echo ---
|
|---|
| 27 | echo Only for $buildgroup Image!!
|
|---|
| 28 | echo ---------------------------
|
|---|
| 29 | exit 1
|
|---|
| 30 | fi
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | echo "Installation des neuen Pluginservers.... "
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.