git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b2f20
)
added file from 2.0 branch
author
Herb Lewis
<herb@samba.org>
Wed, 25 Nov 1998 18:11:42 +0000
(18:11 +0000)
committer
Herb Lewis
<herb@samba.org>
Wed, 25 Nov 1998 18:11:42 +0000
(18:11 +0000)
(This used to be commit
8ec972ba6c274076b46081502acef256a70d1a38
)
packaging/SGI/removeswat.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/packaging/SGI/removeswat.sh
b/packaging/SGI/removeswat.sh
new file mode 100755
(executable)
index 0000000..
6834b25
--- /dev/null
+++ b/
packaging/SGI/removeswat.sh
@@ -0,0
+1,17
@@
+#! /bin/sh
+#
+# remove SWAT deamon from inetd.conf
+#
+cp /etc/inetd.conf /etc/inetd.O
+sed -e "/^swat/D" -e "/^#SWAT/D" /etc/inetd.O > /etc/inetd.conf
+
+#
+# remove SWAT service port from /etc/services
+#
+cp /etc/services /etc/services.O
+sed -e "/^swat/D" -e "/^#SWAT/D" /etc/services.O > /etc/services
+
+#
+# restart inetd to reread config files
+#
+/etc/killall -HUP inetd