Revision 8748,
1.1 KB
checked in by cfields, 28 years ago
(diff) |
Fixed location of hdsp0master.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[8694] | 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 | # |
---|
[8712] | 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 | # |
---|
[8748] | 44 | chown $USER /dev/audio /dev/hdsp/hdsp0r* /dev/hdsp/hdsp0master /dev/video /dev/vid /dev/dmrb |
---|
| 45 | chmod 600 /dev/audio /dev/hdsp/hdsp0r* /dev/hdsp/hdsp0master /dev/video /dev/vid /dev/dmrb |
---|
[8712] | 46 | |
---|
| 47 | # |
---|
[8694] | 48 | # Tell xdm everything is ok |
---|
| 49 | # |
---|
| 50 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.