Fix problem with "hide unreadable". stat file opens are baaack :-).
[Samba.git] / packaging / Solaris / r.swat
blob11c776646da4ae33e9ded0195c80fca421aa1fc0
1 while read dest
2 do
3         sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2
4         # Use cp;rm; instead of mv because $dest might be a symlink
5         cp -f /tmp/$$swat $dest || exit 2
6         rm -f /tmp/$$swat
7 done
9 if [ "$1" = ENDOFCLASS ]
10 then
11         if [ -z "$PKG_INSTALL_ROOT" ]
12         then
13                 kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'`
14         fi