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

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

[ipk] - copy source->source.sh4

  • Property svn:executable set to *
File size: 1.1 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 "checking OS"
34if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
35 echo ---------------------------
36 echo DONT USE this IPK Package!!
37 echo ---
38 echo Only for AAF Image!!
39 echo ---------------------------
40 exit 1
41fi
42echo "deleting libsmbclient.so.0 LINK in /var/usr/lib"
43rm /var/usr/lib/libsmbclient.so.0
44exit 0
Note: See TracBrowser for help on using the repository browser.