OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.0 KiB

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