source: ipk/source.sh4/swapnetwork_libsmbclient_3_0_28b/CONTROL/preinst@ 19533

Last change on this file since 19533 was 11789, checked in by madie, 14 years ago

[ipk] add bildgroup check

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/sh
2#
3TMP=/tmp/.network
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" = "ufs912" ]; then
13 echo "You don`t need this package on your $model !!"
14 echo "Aborting installation..."
15 exit 1
16elif [ "$model" = "" ]; then
17 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
18 echo "Aborting installation..."
19 exit 1
20else
21 echo "Boxtype: $model OK"
22fi
23
24echo "checking swapstick"
25if [ ! -d /var/swap/lib/ ]; then
26 echo "--------------------------"
27 echo "no swapstick found...."
28 echo "--------------------------"
29 exit 1
30fi
31echo "swapstick found...."
32echo "installing Networkfile libsmbclient 3.0.28 to swapstick..."
33echo "deleting libsmbclient.so.0 LINK in /var/usr/lib"
34rm /var/usr/lib/libsmbclient.so.0
35
36buildgroup=`cat /etc/.buildgroup`
37echo "checking OS"
38if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then
39 echo ---------------------------
40 echo DONT USE this IPK Package!!
41 echo ---
42 echo Only for $buildgroup Image!!
43 echo ---------------------------
44 exit 1
45fi
46
47exit 0
Note: See TracBrowser for help on using the repository browser.