diff options
Diffstat (limited to 'usr/src/cmd/svc/shell/smf_include.sh')
-rw-r--r-- | usr/src/cmd/svc/shell/smf_include.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usr/src/cmd/svc/shell/smf_include.sh b/usr/src/cmd/svc/shell/smf_include.sh index 9357c1bfbc..28aa22d701 100644 --- a/usr/src/cmd/svc/shell/smf_include.sh +++ b/usr/src/cmd/svc/shell/smf_include.sh @@ -20,10 +20,9 @@ # CDDL HEADER END # # -# Copyright 2007 Sun Microsystems, Inc. All rights reserved. +# Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" smf_present () { [ -r /etc/svc/volatile/repository_door ] && \ @@ -95,6 +94,17 @@ smf_dont_configure_ip() { return 1 } +# smf_dont_configure_vt +# +# Returns zero (success) if vt functionality is not to be configured, +# 1 otherwise. +# +smf_dont_configure_vt() { + [ "${SMF_ZONENAME:=`/sbin/zonename`}" != "global" ] && return 0 + /usr/lib/vtinfo > /dev/null 2>&1 + return $? +} + # smf_is_system_labeled # # Returns zero (success) if system is labeled (aka Trusted Extensions). |