summaryrefslogtreecommitdiffstats
path: root/os-plugins
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-08-24 15:47:24 +0200
committerDirk von Suchodoletz2008-08-24 15:47:24 +0200
commit91d2b4f4a46af1daec3b471f81664280c7cd407e (patch)
treefe3558bd3d55089a6cc210902695d360e07e5cf9 /os-plugins
parent* fix for #262 (diff)
downloadcore-91d2b4f4a46af1daec3b471f81664280c7cd407e.tar.gz
core-91d2b4f4a46af1daec3b471f81664280c7cd407e.tar.xz
core-91d2b4f4a46af1daec3b471f81664280c7cd407e.zip
Fix for xserver plugin script not returning in some cases.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2091 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins')
-rw-r--r--os-plugins/plugins/xserver/XX_xserver.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/os-plugins/plugins/xserver/XX_xserver.sh b/os-plugins/plugins/xserver/XX_xserver.sh
index 25fef443..0280b2c6 100644
--- a/os-plugins/plugins/xserver/XX_xserver.sh
+++ b/os-plugins/plugins/xserver/XX_xserver.sh
@@ -36,6 +36,7 @@ if [ -e /initramfs/plugin-conf/xserver.conf ]; then
[ $DEBUGLEVEL -gt 0 ] && echo "executing the 'xserver' os-plugin ...";
xmodule=$(grep -i -m 1 "XFree86 v4 Server Module" /etc/hwinfo.data | \
sed "s/.*v4 Server Module: //")
+ # proprietary ATI/NVidia modules listed a different way with hwinfo
[ -z "$xmodule" ] || error "${hcfg_hwsetup}" nonfatal
echo -e "# $xfc\n# autogenerated X hardware configuration by the xserver \
plugin in OpenSLX stage3\n# DO NOT EDIT THIS FILE BUT THE PLUGIN INSTEAD" \
@@ -136,17 +137,17 @@ Section "DRI"
EndSection
' >> $xfc
# if no module was detected, stick to vesa module
- if [ -z "$xmodule" ] ; then
- xmodule=vesa
- error "xserver: no proper module was detected"
+ if [ -n "$xmodule" ] ; then
+ sed "s/vesa/$xmodule/;s/\"us\"/\"${XKEYBOARD}\"/" -i $xfc
+ else
+ sed "s/\"us\"/\"${XKEYBOARD}\"/" -i $xfc
fi
- sed "s/vesa/$xmodule/;s/\"us\"/\"${XKEYBOARD}\"/" -i $xfc
# these directories might be distro specific
for file in /var/lib/xkb/compiled ; do
testmkd /mnt/${file}
done
# if a synaptic touchpad is present, add it to the device list
- if grep -E "ynaptics" /etc/hwinfo.mouse ; then
+ if grep -q -E "ynaptics" /etc/hwinfo.mouse ; then
sed -e '/\"CorePointer\"/ {
a\
EndSection\