~vcs-imports/samba/main

« back to all changes in this revision

Viewing changes to packaging/Example/setup.sh

  • Committer: jerry
  • Date: 2006-07-14 21:48:39 UTC
  • Revision ID: vcs-imports@canonical.com-20060714214839-586d8c489a8fcead
gutting trunk to move to svn:externals

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# Note: This file MUST be edited to suit the target OS environment.
4
 
#
5
 
 
6
 
echo "Setting up for SWAT - The Samba Web Administration Tool"
7
 
 
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]