source: ipk/source.sh4/feed_aaf/CONTROL/preinst@ 11838

Last change on this file since 11838 was 11838, checked in by obi, 14 years ago

[ipk] change feed

File size: 842 bytes
Line 
1#!/bin/sh
2#
3TMP=/tmp/.feeds
4echo "syncing disk"
5sync
6
7cp /var/etc/ipkg/official-feed.conf /var/etc/ipkg/official-feed.conf.original
8echo "Original Datei wird gesichert"
9
10model=`cat /etc/model`
11echo""
12echo "Überprüfung des Receivers...."
13echo ""
14if [ "$model" != "atemio500" ]; then
15 echo "Entschuldigung! Dieses Plugin funktioniert nicht korrekt auf ihrer $model .."
16 echo "Installation wird abgebrochen..."
17 exit 1
18else
19 echo "Boxtype: $model OK"
20fi
21buildgroup=`cat /etc/.buildgroup`
22echo "checking OS"
23if [ `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
30fi
31
32
33echo "Installation des neuen Pluginservers.... "
34
35
36exit 0
Note: See TracBrowser for help on using the repository browser.