Revision 8712,
1.1 KB
checked in by cfields, 28 years ago
(diff) |
Chown assorted interesting devices (including audio and video) to
the user who logs in, mode 600.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # Xstartup |
---|
4 | # |
---|
5 | # This program is run as root after the user is verified |
---|
6 | # |
---|
7 | # don't do xstdcmap until its fixed |
---|
8 | # nohup /usr/bin/X11/xstdcmap -all & |
---|
9 | |
---|
10 | # |
---|
11 | # CAUTION: |
---|
12 | # These two lines need to match those in /usr/bin/X11/X. |
---|
13 | # NOT configurable on a per-user basis. |
---|
14 | # |
---|
15 | glGammaFile=/etc/config/system.glGammaVal |
---|
16 | glGammaDefault="1.7" |
---|
17 | GAMMA_CMD=/usr/sbin/gamma |
---|
18 | |
---|
19 | # |
---|
20 | # Execute gamma only for REX (starter) graphics. |
---|
21 | # |
---|
22 | if `hinv -c graphics | fgrep -s LG1` && [ -x "$GAMMA_CMD" ]; then |
---|
23 | RUN_GAMMA=1 |
---|
24 | fi |
---|
25 | |
---|
26 | if [ "$RUN_GAMMA" = 1 ]; then |
---|
27 | if [ -r $glGammaFile -a -s $glGammaFile ]; then |
---|
28 | glGammaVal=`cat $glGammaFile` |
---|
29 | else |
---|
30 | glGammaVal=$glGammaDefault |
---|
31 | fi |
---|
32 | |
---|
33 | screens=`/usr/bin/X11/xlistscrns` |
---|
34 | for screen in $screens |
---|
35 | do |
---|
36 | HOME=/ DISPLAY=$screen /usr/sbin/gamma $glGammaVal |
---|
37 | done |
---|
38 | fi |
---|
39 | |
---|
40 | # |
---|
41 | # Claim these devices for the user logging in on the console. |
---|
42 | # They are normally all 666 except for hdsp0control, which is 600. |
---|
43 | # |
---|
44 | chown $USER /dev/audio /dev/hdsp/hdsp0r* /dev/hdsp0master /dev/video /dev/vid /dev/dmrb |
---|
45 | chmod 600 /dev/audio /dev/hdsp/hdsp0r* /dev/hdsp0master /dev/video /dev/vid /dev/dmrb |
---|
46 | |
---|
47 | # |
---|
48 | # Tell xdm everything is ok |
---|
49 | # |
---|
50 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.