diff options
Diffstat (limited to 'packaging/Solaris/r.swat')
-rw-r--r-- | packaging/Solaris/r.swat | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packaging/Solaris/r.swat b/packaging/Solaris/r.swat new file mode 100644 index 0000000000..11c776646d --- /dev/null +++ b/packaging/Solaris/r.swat @@ -0,0 +1,16 @@ +while read dest +do + sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2 + # Use cp;rm; instead of mv because $dest might be a symlink + cp -f /tmp/$$swat $dest || exit 2 + rm -f /tmp/$$swat +done + +if [ "$1" = ENDOFCLASS ] +then + if [ -z "$PKG_INSTALL_ROOT" ] + then + kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'` + fi +fi + |