summaryrefslogtreecommitdiff
path: root/packaging/Digital/setup.sh
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>1998-11-14 13:01:34 +0000
committerJohn Terpstra <jht@samba.org>1998-11-14 13:01:34 +0000
commit6b989ca4fd6e80e04a28ccea76875933f016dd86 (patch)
tree707b021f4b3365222c9777bb593c33531a7be239 /packaging/Digital/setup.sh
parent3a4cce6d16e27a385b33a5ea0247006036f6a14e (diff)
downloadsamba-6b989ca4fd6e80e04a28ccea76875933f016dd86.tar.gz
samba-6b989ca4fd6e80e04a28ccea76875933f016dd86.tar.bz2
samba-6b989ca4fd6e80e04a28ccea76875933f016dd86.zip
Added first cut of the new packaging scripts for Digital Unix.
Note: This will be extended for all other OS's so that it can be maintained by the samba release scripts. (This used to be commit 0f98a2fd58aee1dac4d0f4098a2e690dfaf5ba27)
Diffstat (limited to 'packaging/Digital/setup.sh')
-rwxr-xr-xpackaging/Digital/setup.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/packaging/Digital/setup.sh b/packaging/Digital/setup.sh
new file mode 100755
index 0000000000..81b04878bb
--- /dev/null
+++ b/packaging/Digital/setup.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+echo "Setting up for SWAT - The Samba Web Administration Tool"
+
+echo 'swat 901/tcp' >> /etc/services
+uniq /etc/services /tmp/tempserv
+cp /tmp/tempserv /etc/services
+rm /tmp/tempserv
+echo 'swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat' >> /etc/inetd.conf
+uniq /etc/inetd.conf /tmp/tempinetd
+cp /tmp/tempinetd /etc/inetd.conf
+rm /tmp/tempinetd
+echo "Creating Symbolic Links for Start up Scripts"
+cp -f samba.init /sbin/init.d
+chown bin.bin /sbin/init.d/samba.init
+chmod 750 /sbin/init.d/samba.init
+ln -sf /sbin/init.d/samba.init /sbin/rc0.d/K01samba
+ln -sf /sbin/init.d/samba.init /sbin/rc2.d/K91samba
+ln -sf /sbin/init.d/samba.init /sbin/rc3.d/S91samba
+echo "Done. Now settting up samba command"
+ln /sbin/init.d/samba.init /sbin/samba
+echo "Done."
+echo "To start / stop samba:"
+echo " execute: samba [start | stop]