--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/svc-gdm Fri Nov 21 21:16:14 2008 +0000
@@ -0,0 +1,51 @@
+#!/bin/sh
+#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+#pragma ident "@(#)svc-gdm.src 1.1 06/02/06 SMI"
+#
+# For modifying parameters passed to dtlogin, do not edit
+# this script. Instead use svccfg(1m) to modify the SMF
+# repository. For example:
+#
+# # svccfg
+# svc:> select application/graphical-login/gdm
+# svc:/application/graphical-login/gdm> setprop gdm/debug = "true"
+# svc:/application/graphical-login/gdm> exit
+
+. /lib/svc/share/smf_include.sh
+
+case "$1" in
+'start')
+
+ FMRI=svc:application/graphical-login/gdm
+
+ debug=`svcprop -p gdm/debug $FMRI`
+
+ arg=`eval "echo \`svcprop -p gdm/args $FMRI\`"`
+
+ if [ $debug = "true" ]; then
+ /usr/sbin/gdm $arg --debug
+ else
+ /usr/sbin/gdm $arg
+ fi
+
+ rc=$?
+ if [ $rc != 0 ]; then
+ echo "$0: gdm failed with $rc"
+ exit 1
+ fi
+ ;;
+
+'stop')
+ /usr/sbin/gdm-stop
+ ;;
+
+*)
+ echo "Usage: $0 { start | stop }"
+ exit 1
+ ;;
+esac
+
+exit $SMF_EXIT_OK