Cross Reference: svc-hal
xref
: /
osnet-11
/
usr
/
src
/
cmd
/
hal
/
hald
/
solaris
/
svc-hal
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
svc-hal revision 1
1
N/A
#!/
usr
/
sbin
/
sh
1
N/A
#
1
N/A
# Copyright (c) 2006, 2011, Oracle
and
/
or
its affiliates. All rights reserved.
1
N/A
#
1
N/A
# Licensed under the Academic Free License version 2.1
1
N/A
#
1
N/A
1
N/A
. /
lib
/
svc
/
share
/
smf_include.sh
1
N/A
1
N/A
case
"$1"
in
1
N/A
'start'
)
1
N/A
if
smf_is_nonglobalzone
;
then
1
N/A
/
usr
/
sbin
/
svcadm
disable
$SMF_FMRI
1
N/A
echo
"
$SMF_FMRI
is not supported in a local zone"
1
N/A
sleep
5
&
1
N/A
exit
$SMF_EXIT_OK
1
N/A
fi
1
N/A
1
N/A
[ ! -x /
usr
/
lib
/
hal
/
hald
] &&
exit
$SMF_EXIT_ERR_CONFIG
1
N/A
1
N/A
[ ! -d
$SMF_SYSVOL_FS
/
hald
] && /
usr
/
bin
/
mkdir
-m
755
$SMF_SYSVOL_FS
/
hald
1
N/A
[ ! -d /
media
] && /
usr
/
bin
/
mkdir
-m
755
/
media
1
N/A
1
N/A
/
usr
/
lib
/
hal
/
hald
--
daemon
=
yes
1
N/A
err
=$?
1
N/A
if
[
$err
-
ne
0
];
then
1
N/A
echo
"hal failed to start: error
$err
"
1
N/A
exit
$SMF_EXIT_ERR_FATAL
1
N/A
fi
1
N/A
;;
1
N/A
*)
1
N/A
echo
"Usage: $0 { start }"
1
N/A
exit
$SMF_EXIT_ERR_FATAL
1
N/A
;;
1
N/A
esac
1
N/A
1
N/A
exit
$SMF_EXIT_OK