s4:torture/rpc: avoid compiler warnings
[Samba.git] / packaging / Example / setup.sh
blob7fd8fc41105f77708cb72d373c29b21071b03433
1 #!/bin/sh
3 # Note: This file MUST be edited to suit the target OS environment.
6 echo "Setting up for SWAT - The Samba Web Administration Tool"
8 echo 'swat 901/tcp' >> /etc/services
9 uniq /etc/services /tmp/tempserv
10 cp /tmp/tempserv /etc/services
11 rm /tmp/tempserv
12 echo 'swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat' >> /etc/inetd.conf
13 uniq /etc/inetd.conf /tmp/tempinetd
14 cp /tmp/tempinetd /etc/inetd.conf
15 rm /tmp/tempinetd
16 echo "Creating Symbolic Links for Start up Scripts"
17 cp -f samba.init /sbin/init.d
18 chown bin.bin /sbin/init.d/samba.init
19 chmod 750 /sbin/init.d/samba.init
20 ln -sf /sbin/init.d/samba.init /sbin/rc0.d/K01samba
21 ln -sf /sbin/init.d/samba.init /sbin/rc2.d/K91samba
22 ln -sf /sbin/init.d/samba.init /sbin/rc3.d/S91samba
23 echo "Done. Now settting up samba command"
24 ln /sbin/init.d/samba.init /sbin/samba
25 echo "Done."
26 echo "To start / stop samba:"
27 echo " execute: samba [start | stop]"