Remove dead code for packing buffers which has now been reimplemented.
[samba.git] / packaging / Digital / setup.sh
1 #!/bin/sh
2
3 echo "Setting up for SWAT - The Samba Web Administration Tool"
4
5 echo 'swat              901/tcp' >> /etc/services
6 uniq /etc/services /tmp/tempserv
7 cp /tmp/tempserv /etc/services
8 rm /tmp/tempserv
9 echo 'swat      stream  tcp     nowait.400      root    /usr/local/samba/bin/swat swat' >> /etc/inetd.conf
10 uniq /etc/inetd.conf /tmp/tempinetd
11 cp /tmp/tempinetd /etc/inetd.conf
12 rm /tmp/tempinetd
13 echo "Creating Symbolic Links for Start up Scripts"
14 cp -f samba.init /sbin/init.d
15 chown bin.bin /sbin/init.d/samba.init
16 chmod 750 /sbin/init.d/samba.init
17 ln -sf /sbin/init.d/samba.init /sbin/rc0.d/K01samba
18 ln -sf /sbin/init.d/samba.init /sbin/rc2.d/K91samba
19 ln -sf /sbin/init.d/samba.init /sbin/rc3.d/S91samba
20 echo "Done. Now settting up samba command"
21 ln /sbin/init.d/samba.init /sbin/samba
22 echo "Done."
23 echo "To start / stop samba:"
24 echo "  execute:  samba [start | stop]