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
20 echo "export WINDOWMANAGER=\"$*\"" > /etc
/profile.d
/windowmanager
24 echo "export XDM=\"$*\"" > /etc
/conf
/xdm
30 if [ -f /etc
/profile.d
/windowmanager
]; then
31 .
/etc
/profile.d
/windowmanager
35 if [ -f /etc
/conf
/xdm
]; then
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'"
48 for x
in /usr
/share
/rock-registry
/xdm
/* ; do
52 if [ "$XDM" = "$exec" ]; then
57 '$pre Use $name in runlevel 5'
64 for x
in /usr
/share
/rock-registry
/wm
/* ; do
68 if [ "$WINDOWMANAGER" = "$exec" ]; then
73 '$pre Use $name as default Windowmanager'
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'"