open-src/data/smf-rbac/Xserver
changeset 859 449d89f35385
parent 851 d428083dbbdd
child 905 d2b59d5a79ed
equal deleted inserted replaced
858:8be44a87f29f 859:449d89f35385
     1 #!/bin/ksh93
     1 #!/bin/ksh93
     2 #
     2 #
     3 # ident	"@(#)Xserver	1.9	09/12/05 SMI"
     3 # ident	"@(#)Xserver	1.10	09/12/11 SMI"
     4 #
     4 #
     5 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     5 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     6 # Use is subject to license terms.
     6 # Use is subject to license terms.
     7 #
     7 #
     8 # Permission is hereby granted, free of charge, to any person obtaining a
     8 # Permission is hereby granted, free of charge, to any person obtaining a
   161 # Make sure ${XSERVER} is a known X server binary
   161 # Make sure ${XSERVER} is a known X server binary
   162 function is_known_xserver {
   162 function is_known_xserver {
   163     case "$1" in
   163     case "$1" in
   164 	/usr/bin/Xorg)			return 0 ;;
   164 	/usr/bin/Xorg)			return 0 ;;
   165 	/usr/bin/amd64/Xorg)		return 0 ;;
   165 	/usr/bin/amd64/Xorg)		return 0 ;;
   166 	/usr/bin/i386/Xorg)		return 0 ;;
   166 	/usr/bin/i86/Xorg)		return 0 ;;
   167 	/usr/bin/Xvfb)			return 0 ;;
   167 	/usr/bin/Xvfb)			return 0 ;;
   168 	/usr/bin/amd64/Xvfb)		return 0 ;;
   168 	/usr/bin/amd64/Xvfb)		return 0 ;;
   169 	/usr/bin/i386/Xvfb)		return 0 ;;
   169 	/usr/bin/i86/Xvfb)		return 0 ;;
   170 	/usr/bin/Xvnc)			return 0 ;;
   170 	/usr/bin/Xvnc)			return 0 ;;
   171 	/usr/openwin/bin/Xsun)		return 0 ;;
   171 	/usr/openwin/bin/Xsun)		return 0 ;;
   172 	/usr/openwin/bin/Xvfb)		return 0 ;;
   172 	/usr/openwin/bin/Xvfb)		return 0 ;;
   173 	/opt/SUNWut/lib/Xnewt)		return 0 ;;
   173 	/opt/SUNWut/lib/Xnewt)		return 0 ;;
   174     esac
   174     esac