summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-smf-delete
blob: bad0408a7504c9a2f601ca41a71f5128f829ef36 (plain)
1
2
3
4
5
6
7
8
9
10
if [ "$1" = remove ]; then
if [ -x /usr/bin/smf_present ] && /usr/bin/smf_present; then
  for s in #SERVICES#; do
    /usr/sbin/svccfg delete -f $s || true;
  done
  for f in #MANIFESTS#; do
    /usr/sbin/svccfg delhash -d $f || true;
  done
fi
fi