[python] Updated (2.4.4 -> 2.4.5)
[opensde-package-nopast.git] / xorg / xorg-server / stone_mod_xorg.sh
blobc853bbc4cbacbeaa32a6007b0d20a97690af9471
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../xorg-server/stone_mod_xorg.sh
5 # Copyright (C) 2008 The OpenSDE Project
6 # Copyright (C) 2004 - 2006 The T2 SDE Project
7 # Copyright (C) 1998 - 2004 Clifford Wolf
9 # More information can be found in the files COPYING and README.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; version 2 of the License. A copy of the
14 # GNU General Public License can be found in the file COPYING.
15 # --- SDE-COPYRIGHT-NOTE-END ---
17 # [MAIN] 50 xorg X11 Configuration
19 set_wm() {
20 echo "export WINDOWMANAGER=\"$*\"" > /etc/profile.d/windowmanager
23 set_xdm() {
24 echo "export XDM=\"$*\"" > /etc/conf/xdm
27 main() {
28 while
29 WINDOWMANAGER=
30 if [ -f /etc/profile.d/windowmanager ]; then
31 . /etc/profile.d/windowmanager
34 XDM=
35 if [ -f /etc/conf/xdm ]; then
36 . /etc/conf/xdm
39 cmd="gui_menu x 'X11 Configuration Menu'
40 'Run XcfgT2 (the T2 LiveCD auto configuration)'
41 'gui_cmd XcfgT2 xcfgt2'
43 'Run X -configure (automated config)'
44 'gui_cmd Xorg Xorg -configure ; mv -v /root/xorg.conf.new /etc/X11/xorg.conf'"
46 cmd="$cmd '' ''"
48 for x in /usr/share/rock-registry/xdm/* ; do
49 if [ -f $x ] ; then
50 . $x
52 if [ "$XDM" = "$exec" ]; then
53 pre='[*]' ; else
54 pre='[ ]' ; fi
56 cmd="$cmd
57 '$pre Use $name in runlevel 5'
58 'set_xdm $exec'"
60 done
62 cmd="$cmd '' ''"
64 for x in /usr/share/rock-registry/wm/* ; do
65 if [ -f $x ] ; then
66 . $x
68 if [ "$WINDOWMANAGER" = "$exec" ]; then
69 pre='[*]' ; else
70 pre='[ ]' ; fi
72 cmd="$cmd
73 '$pre Use $name as default Windowmanager'
74 'set_wm $exec'"
76 done
78 cmd="$cmd '' ''"
80 cmd="$cmd
81 'Edit/View /etc/X11/xorg.conf'
82 'gui_edit xorg.conf /etc/X11/xorg.conf'
83 'Edit/View /etc/profile.d/windowmanager'
84 'gui_edit WINDOWMANAGER /etc/profile.d/windowmanager'"
86 eval $cmd
87 do : ; done