* fix qemu for m68k by just using tcg-interpreter, too
[t2sde.git] / package / xorg / xorg-server / stone_mod_xorg.sh
blob24978840f6a6a99ea4288cd4a4b2d94a4244d079
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xorg-server/stone_mod_xorg.sh
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
5 #
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # [MAIN] 50 xorg X11 Configuration
15 set_wm() {
16 echo "export WINDOWMANAGER=\"$*\"" > /etc/profile.d/windowmanager
19 set_xdm() {
20 echo "export XDM=\"$*\"" > /etc/conf/xdm
23 main() {
24 while
25 WINDOWMANAGER=""
26 if [ -f /etc/profile.d/windowmanager ]; then
27 . /etc/profile.d/windowmanager
30 XDM=""
31 if [ -f /etc/conf/xdm ]; then
32 . /etc/conf/xdm
35 cmd="gui_menu x 'X11 Configuration Menu'
36 'Run XcfgT2 (the T2 LiveCD auto configuration)'
37 'gui_cmd XcfgT2 xcfgt2'
39 'Run X -configure (automated config)'
40 'gui_cmd Xorg Xorg -configure ; mv -v /root/xorg.conf.new /etc/X11/xorg.conf'"
42 cmd="$cmd '' ''"
44 for x in /usr/share/registry/xdm/* ; do
45 if [ -f $x ]; then
46 . $x
48 if [ "$XDM" = "$exec" ]; then
49 pre='[*]'; else
50 pre='[ ]'; fi
52 cmd="$cmd
53 '$pre Use $name in runlevel 5'
54 'set_xdm $exec'"
56 done
58 cmd="$cmd '' ''"
60 for x in /usr/share/registry/wm/* ; do
61 if [ -f $x ]; then
62 . $x
64 if [ "$WINDOWMANAGER" = "$exec" ]; then
65 pre='[*]'; else
66 pre='[ ]'; fi
68 cmd="$cmd
69 '$pre Use $name as default Windowmanager'
70 'set_wm $exec'"
72 done
74 cmd="$cmd '' ''"
76 cmd="$cmd
77 'Edit/View /etc/X11/xorg.conf'
78 'gui_edit xorg.conf /etc/X11/xorg.conf'
79 'Edit/View /etc/profile.d/windowmanager'
80 'gui_edit WINDOWMANAGER /etc/profile.d/windowmanager'"
82 eval $cmd
83 do : ; done