15009
|
1 |
#!/bin/sh
|
|
2 |
#
|
|
3 |
# CDDL HEADER START
|
|
4 |
#
|
|
5 |
# The contents of this file are subject to the terms of the
|
|
6 |
# Common Development and Distribution License, Version 1.0 only
|
|
7 |
# (the "License"). You may not use this file except in compliance
|
|
8 |
# with the License.
|
|
9 |
#
|
|
10 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
11 |
# or http://www.opensolaris.org/os/licensing.
|
|
12 |
# See the License for the specific language governing permissions
|
|
13 |
# and limitations under the License.
|
|
14 |
#
|
|
15 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
16 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
17 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
18 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
19 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
20 |
#
|
|
21 |
# CDDL HEADER END
|
|
22 |
#
|
|
23 |
#
|
|
24 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
25 |
# Use is subject to license terms.
|
|
26 |
#
|
|
27 |
|
|
28 |
|
|
29 |
DT_BINPATH=/usr/dt/bin
|
|
30 |
XPATHS='
|
|
31 |
/usr/X11/bin
|
|
32 |
/usr/openwin/bin
|
|
33 |
'
|
|
34 |
|
|
35 |
for XPATH in $XPATHS
|
|
36 |
do
|
|
37 |
if [ -x $XPATH/xrdb ] ; then
|
|
38 |
XRDB=$XPATH/xrdb
|
|
39 |
fi
|
|
40 |
done
|
|
41 |
|
|
42 |
XRDB=${XRDB:-"xrdb"}
|
|
43 |
|
|
44 |
if [ -x $DT_BINPATH/dtsession_res ] ; then
|
|
45 |
$DT_BINPATH/dtsession_res -load -system
|
|
46 |
$DT_BINPATH/dtsession_res -merge -tty
|
|
47 |
fi
|
|
48 |
|
|
49 |
$XRDB -merge << EOF
|
|
50 |
! Default CDE resources
|
|
51 |
*WindowColor: #8A008A008A00
|
|
52 |
!*WindowForeground: #FF0000000000
|
|
53 |
!*DataBackground: #0000FF000000
|
|
54 |
*DataForeground: #FF0000000000
|
|
55 |
*WorkspaceColor: #8A008A008A00
|
|
56 |
*Color.Background: #FF000000FF00
|
|
57 |
!*Color.Foreground: #0000FF000000
|
|
58 |
*foreground: #000000000000
|
|
59 |
! Hack for Dtmail
|
|
60 |
*XmText*background: seashell
|
|
61 |
*XmTextField*background: seashell
|
|
62 |
*Message_List*background: seashell
|
|
63 |
*background: #AE00B200C300
|
|
64 |
Dthello*string: Welcome to the Sun Java Desktop System
|
|
65 |
EOF
|
|
66 |
|
|
67 |
if [ -f $HOME/.Xdefaults ]; then
|
|
68 |
$XRDB -merge $HOME/.Xdefaults # Load Users X11 resource database
|
|
69 |
fi
|
|
70 |
|