diff options
author | David O'Neill <dmo@samba.org> | 2001-01-05 17:59:31 +0000 |
---|---|---|
committer | David O'Neill <dmo@samba.org> | 2001-01-05 17:59:31 +0000 |
commit | 79b73e62ee23bc28a169ec4cee1740ba688e972d (patch) | |
tree | ca0759ff389fdef978406c3a2d0202a11c3a5a60 /packaging/SGI/inetd.sh | |
parent | fbe0299e54df9173859182fad0071c7a3217b403 (diff) | |
download | samba-79b73e62ee23bc28a169ec4cee1740ba688e972d.tar.gz samba-79b73e62ee23bc28a169ec4cee1740ba688e972d.tar.xz samba-79b73e62ee23bc28a169ec4cee1740ba688e972d.zip |
Sync up packaging updates that didn't make it to HEAD.
(This used to be commit c6f7358535eb96112e055d60d39c1595601d3056)
Diffstat (limited to 'packaging/SGI/inetd.sh')
-rwxr-xr-x | packaging/SGI/inetd.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packaging/SGI/inetd.sh b/packaging/SGI/inetd.sh index 8c4c6cb8d8b..1d403978aec 100755 --- a/packaging/SGI/inetd.sh +++ b/packaging/SGI/inetd.sh @@ -8,8 +8,12 @@ chkconfig samba off # # add SAMBA deamons to inetd.conf # -cp /etc/inetd.conf /etc/inetd.O -sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.O > /etc/inetd.conf +cp /etc/inetd.conf /etc/inetd.conf.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/inetd.conf.O -o ! -w /etc/inetd.conf ]; then exit 1; fi + +sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/inetd.conf.O > /etc/inetd.conf echo '#SAMBA services' >> /etc/inetd.conf echo netbios-ssn stream tcp nowait root /usr/samba/bin/smbd smbd >> /etc/inetd.conf echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc/inetd.conf @@ -18,6 +22,10 @@ echo netbios-ns dgram udp wait root /usr/samba/bin/nmbd nmbd -S >> /etc # add SAMBA service ports to /etc/services # cp /etc/services /etc/services.O + +if [ $? -ne 0 ]; then exit 1; fi +if [ ! -r /etc/services.O -o ! -w /etc/services ]; then exit 1; fi + sed -e "/^netbios/D" -e "/^#SAMBA/D" /etc/services.O > /etc/services echo '#SAMBA services' >> /etc/services echo 'netbios-ns 137/udp # SAMBA' >> /etc/services |