source: ipk/source/swapnetwork_Sambaserver_3_0_28b/CONTROL/preinst@ 6197

Last change on this file since 6197 was 6197, checked in by madie, 15 years ago

[ipk] small fix for sambaserver ipk

  • 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/bin/ ]; then
26 echo "--------------------------"
27 echo "no swapstick found...."
28 echo "--------------------------"
29 exit 1
30fi
31echo "swapstick found...."
32echo "installing Networkfile Sambaserver 3.0.28 to swapstick..."
33echo "deleting smbd LINK in /var/bin/"
34rm /var/bin/smbd
35echo "deleting nmbd LINK in /var/bin/"
36rm /var/bin/nmbd
37echo "checking OS"
38if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
39 echo ---------------------------
40 echo DONT USE this IPK Package!!
41 echo ---
42 echo Only for AAF Image!!
43 echo ---------------------------
44 exit 1
45fi
46
47exit 0
Note: See TracBrowser for help on using the repository browser.