From e9ba117b5f9c9d0d6d75fb7d05a10bf242e6e23a Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 6 Aug 2008 12:13:16 +0000 Subject: Next iteration of Xorg setup (xserver plugin) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1970 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/xserver/XX_xserver.sh | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'os-plugins') diff --git a/os-plugins/plugins/xserver/XX_xserver.sh b/os-plugins/plugins/xserver/XX_xserver.sh index c8c3d13c..615a97c5 100644 --- a/os-plugins/plugins/xserver/XX_xserver.sh +++ b/os-plugins/plugins/xserver/XX_xserver.sh @@ -15,10 +15,21 @@ # script is included from init via the "." load function - thus it has all # variables and functions available +# read the central configuration file (fixme: should the keyboard layout +# defined within the xserver plugin settings - probably not, dvs) +if [ -e /initramfs/machine-setup ] ; then + . /initramfs/machine-setup +else + error " The central configuration file 'machine-setup' is not present" \ + nonfatal +fi + xfc="/mnt/etc/X11/xorg.conf" if [ -e /initramfs/plugin-conf/xserver.conf ]; then . /initramfs/plugin-conf/xserver.conf + # keyboard setup + localization "${country}" # do not start any configuration if the admin provided a preconfigured # xorg.conf in /rootfs/etc/X11/xorg.conf if [ $xserver_active -ne 0 -a ! -f /rootfs/${xfc#/mnt} ]; then @@ -56,17 +67,17 @@ Section "InputDevice" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" - Option "XkbLayout" "XKEYBOARD" + Option "XkbLayout" "us" Option "XkbVariant" "nodeadkeys" EndSection Section "InputDevice" Identifier "Generic Mouse" Driver "mouse" Option "CorePointer" - Option "Device" "/dev/input/mice" - Option "Protocol" "ImPS/2" - Option "ZAxisMapping" "4 5" - Option "Emulate3Buttons" "true" +# Option "Device" "/dev/input/mice" +# Option "Protocol" "ImPS/2" +# Option "ZAxisMapping" "4 5" +# Option "Emulate3Buttons" "true" EndSection Section "InputDevice" Driver "wacom" @@ -102,10 +113,10 @@ Section "Screen" Device "Generic Video Card" Monitor "Generic Display" DefaultDepth 24 - SubSection "Display" - Depth 24 - Modes "1024x768" "800x600" - EndSubSection +# SubSection "Display" +# Depth 24 +# Modes "1024x768" "800x600" +# EndSubSection EndSection Section "ServerLayout" Identifier "Default Layout" @@ -120,7 +131,7 @@ Section "DRI" Mode 0666 EndSection ' >> $xfc - sed "s/vesa/$xmodule/" -i $xfc + sed "s/vesa/$xmodule/;s/\"us\"/\"${XKEYBOARD}\"/" -i $xfc [ $DEBUGLEVEL -gt 0 ] && echo "done with 'xserver' os-plugin ..."; fi -- cgit v1.2.3-55-g7522