3 # Copyright 2011, 2014 Oracle and/or its affiliates. All rights reserved.
4 # Use is subject to license terms.
6 # For modifying parameters passed to dtlogin, do not edit
7 # this script. Instead use svccfg(1m) to modify the SMF
8 # repository. For example:
11 # svc:> select system/consolekit
12 # svc:/system/consolekit> setprop consolekit/args = "--fatal-warnings"
13 # svc:/system/consolekit> exit
15 .
/lib
/svc
/share
/smf_include.sh
19 FMRI
=svc
:/system
/consolekit
21 arg
=`eval "echo \`svcprop
-p consolekit
/args
$FMRI\
`"`
23 SEATFILE
=/etc
/ConsoleKit
/seats.d
/00-primary.seat
25 rep
=`eval "echo \`svcprop
-p consolekit
/sessions
$FMRI\
`"`
27 curline
=`sed -n "/Sessions=/p" $SEATFILE`
28 cur
=`expr $curline : "Sessions=\(.*\);"`
30 if [[ $cur != $rep ]]; then
31 /usr
/bin
/ex
$SEATFILE << EOF
33 s/$curline/Sessions=$rep;/
39 /usr
/sbin
/console-kit-daemon
$arg
42 if [ $rc -ne 0 ]; then
43 echo "$0: consolekit failed with $rc"
44 exit $SMF_EXIT_ERR_FATAL
49 echo "Usage: $0 { start }"
50 exit $SMF_EXIT_ERR_FATAL