Cross Reference: r.manifest
xref
: /
solaris-desktop
/
ext-sources
/
r.manifest
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
r.manifest revision 7082
10139
N/A
#!/
bin
/
sh
10139
N/A
#
10139
N/A
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
10139
N/A
# Use is subject to license terms.
10139
N/A
#
10139
N/A
#ident "@(#)
r.manifest
1.2 04/09/24 SMI"
10139
N/A
#
10139
N/A
#
r.manifest
- smf(5) manifest remove class action script
10139
N/A
#
10139
N/A
10139
N/A
if
[
"
$PKG_INSTALL_ROOT
"
!=
""
-a
"
$PKG_INSTALL_ROOT
"
!=
"/"
];
then
10139
N/A
#
10253
N/A
# We can't safely disable the service in this case.
10139
N/A
#
10139
N/A
smf_alive
=
no
10139
N/A
else
10139
N/A
#
10139
N/A
# We can verify if the service is disabled prior to
10139
N/A
# removal.
10139
N/A
#
10139
N/A
if
[ -r /
etc
/
svc
/
volatile
/
repository_door
];
then
10139
N/A
smf_alive
=
yes
10139
N/A
fi
10139
N/A
fi
10139
N/A
10139
N/A
SVCPROP
=/
usr
/
bin
/
svcprop
10139
N/A
10139
N/A
while
read
mfst
;
do
10139
N/A
if
[
"
$smf_alive
"
=
"yes"
];
then
10139
N/A
ENTITIES
=
`/
usr
/
sbin
/
svccfg
inventory
$mfst
`
10139
N/A
10139
N/A
for
fmri
in
$ENTITIES
;
do
10139
N/A
#
10139
N/A
# Determine whether any of our instances are
10242
N/A
# enabled.
10139
N/A
#
10242
N/A
en_p
=
`
$SVCPROP
-p
general
/
enabled
$fmri
2
>/
dev
/
null
`
10139
N/A
en_o
=
`
$SVCPROP
-p
general_ovr
/
enabled
$fmri
2
>/
dev
/
null
`
10139
N/A
10139
N/A
if
[
"
$en_p
"
=
"true"
-o
"
$en_o
"
=
"true"
];
then
10139
N/A
echo
"
$fmri
remains enabled; aborting"
10139
N/A
exit
1
10139
N/A
fi
10139
N/A
10139
N/A
/
usr
/
sbin
/
svccfg
delete
$fmri
10139
N/A
done
10139
N/A
fi
10139
N/A
10139
N/A
/
usr
/
bin
/
rm
$mfst
10139
N/A
done
10139
N/A
10139
N/A
exit
0
10139
N/A