source: branches/samba-3.0/packaging/Example/setup.sh@ 286

Last change on this file since 286 was 286, checked in by Herwig Bauernfeind, 16 years ago

Update 3.0 to 3.0.35

File size: 917 bytes
Line 
1#!/bin/sh
2#
3# Note: This file MUST be edited to suit the target OS environment.
4#
5
6echo "Setting up for SWAT - The Samba Web Administration Tool"
7
8echo 'swat 901/tcp' >> /etc/services
9uniq /etc/services /tmp/tempserv
10cp /tmp/tempserv /etc/services
11rm /tmp/tempserv
12echo 'swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat' >> /etc/inetd.conf
13uniq /etc/inetd.conf /tmp/tempinetd
14cp /tmp/tempinetd /etc/inetd.conf
15rm /tmp/tempinetd
16echo "Creating Symbolic Links for Start up Scripts"
17cp -f samba.init /sbin/init.d
18chown bin.bin /sbin/init.d/samba.init
19chmod 750 /sbin/init.d/samba.init
20ln -sf /sbin/init.d/samba.init /sbin/rc0.d/K01samba
21ln -sf /sbin/init.d/samba.init /sbin/rc2.d/K91samba
22ln -sf /sbin/init.d/samba.init /sbin/rc3.d/S91samba
23echo "Done. Now settting up samba command"
24ln /sbin/init.d/samba.init /sbin/samba
25echo "Done."
26echo "To start / stop samba:"
27echo " execute: samba [start | stop]"
Note: See TracBrowser for help on using the repository browser.