Installation script of "samba"


echo "Updating etc/rc.config..."
if [ -x bin/fillup ] ; then
  bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.samba
else
  echo "ERROR: fillup not found. This should not happen. Please compare"
  echo "etc/rc.config and var/adm/fillup-templates/rc.config.samba and"
  echo "update by hand."
fi
if grep -q '^[#[:space:]]*swat' etc/inetd.conf ; then
   echo /etc/inetd.conf is up to date
else
   echo updating inetd.conf
   cat >> etc/inetd.conf << EOF
# swat is the Samba Web Administration Tool
swat    stream  tcp     nowait.400  root    /usr/sbin/swat swat
EOF
fi
if grep -q '^swat' etc/services ; then
   echo /etc/services is up to date
else
   echo updating services
   cat >> etc/services << EOF
swat            901/tcp		# swat is the Samba Web Administration Tool
EOF
fi
mkdir -p var/adm/notify/messages
cat << EOF > var/adm/notify/messages/samba-notify
Achtung!
========
Die Syntax des smbmount Kommandos hat sich geaendert!
smbmount kann nicht mehr direkt aufgerufen werden. Es wird von einem
Shellscript /sbin/mount.smbfs aufgerufen, welches wiederum von mount
aufgerufen wird.
Hier ein Beispielaufruf:
mount -t smbfs -o username=uname,password=passwd //smbserv/share /destination
*****************************************************************************
Attention!
==========
The syntax of smbmount has changed!
smbmount can not be called direct anymore. It will be called by a shell
script /sbin/mount.smbfs, which will be called by mount.
A sample call to smbfs:
mount -t smbfs -o username=uname,password=passwd //smbserv/share /destination
EOF


(c) SuSE - Last update: 31.03.2000 12:23;