2 XCOMM $XConsortium: dtrc.graph_conf.src /main/1 1996/07/24 11:42:43 drk $
4 XCOMM This version of the CDE dtconfig script is for use in the HP-UX
5 XCOMM operating environment.
7 XCOMM Common Desktop Environment
9 XCOMM (c) Copyright 1996 Digital Equipment Corporation.
10 XCOMM (c) Copyright 1993-1994,1996 Hewlett-Packard Company.
11 XCOMM (c) Copyright 1993-1994,1996 International Business Machines Corp.
12 XCOMM (c) Copyright 1993-1994,1996 Sun Microsystems, Inc.
13 XCOMM (c) Copyright 1993-1994,1996 Novell, Inc.
14 XCOMM (c) Copyright 1996 FUJITSU LIMITED.
15 XCOMM (c) Copyright 1996 Hitachi.
18 XCOMM - copies CDE_INSTALLATION_TOP/config/Xservers to
19 XCOMM CDE_CONFIGURATION_TOP/config if it does not yet exist,
20 XCOMM - uses ioscan to find out if the system has a graphics card
22 XCOMM - comments out the "Local" entry in the Xservers file if it
25 XCOMM Location: CDE_INSTALLATION_TOP/config/dtrc.d/20_graph_conf
27 PATH=/sbin:/usr/sbin:/usr/bin:/usr/dt/bin
31 XCOMM create CDE_CONFIGURATION_TOP/config/Xservers if it does not exist
33 if [ ! -f CDE_CONFIGURATION_TOP/config/Xservers ]; then
34 cp CDE_INSTALLATION_TOP/config/Xservers \
35 CDE_CONFIGURATION_TOP/config/Xservers
39 XCOMM comment out the Local entry if there is no graphics card
41 if [[ -z `ioscan -kC graphics` ]]; then
44 sed -e "s:^${TS}*\*${TS}${TS}*Local:# * Local:" \
45 < CDE_CONFIGURATION_TOP/config/Xservers \
47 cp /tmp/Xservers.tmp CDE_CONFIGURATION_TOP/config/Xservers
48 rm -f /tmp/Xservers.tmp
51 XCOMM ################## eof #####################