summaryrefslogtreecommitdiffstats
path: root/os-plugins
diff options
context:
space:
mode:
authorSebastian Schmelzer2008-09-16 19:55:00 +0200
committerSebastian Schmelzer2008-09-16 19:55:00 +0200
commit3e07d0b1e3a78999925393bf3ea433dd1f094c3b (patch)
tree05db931086970fe8efa4740be8cffb79bbd598f2 /os-plugins
parent * next try :) (diff)
downloadcore-3e07d0b1e3a78999925393bf3ea433dd1f094c3b.tar.gz
core-3e07d0b1e3a78999925393bf3ea433dd1f094c3b.tar.xz
core-3e07d0b1e3a78999925393bf3ea433dd1f094c3b.zip
* old xserver needs " arround modes
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2224 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins')
-rw-r--r--os-plugins/plugins/xserver/XX_xserver.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/os-plugins/plugins/xserver/XX_xserver.sh b/os-plugins/plugins/xserver/XX_xserver.sh
index 1410d04b..392bc7c0 100644
--- a/os-plugins/plugins/xserver/XX_xserver.sh
+++ b/os-plugins/plugins/xserver/XX_xserver.sh
@@ -239,8 +239,8 @@ a\ \ InputDevice\ \ "Synaptics TP"\ \ \ \ \ \ "SendCoreEvents"
size="$(grep -m 1 " Size: " /etc/hwinfo.display | \
sed 's|.*ize:\ ||;s|\ mm||;s|x|\ |')"
modes=$(grep -i "Resolution: .*@" /etc/hwinfo.display | \
- awk '{print $2}'| awk -F '@' '{print $1}'| sort -unr| \
- tr "\n" "\" \"")
+ awk '{print $2}'| awk -F '@' '{print "\"" $1 "\""}'| sort -unr| \
+ tr "\n" " ")
[ -n "$vert" -a -n "$horz" ] && \
sed -e "s|# Horizsync.*| Horizsync $horz|;\
s|# Vertrefre.*| Vertrefresh $vert|;\
@@ -250,7 +250,7 @@ a\ \ InputDevice\ \ "Synaptics TP"\ \ \ \ \ \ "SendCoreEvents"
[ -n "$modes" ] && \
sed -e "s|# SubSection.*| SubSection \"Display\"|;\
s|# Depth 24.*| Depth 24|;\
- s|# Modes.*| Modes \"$modes\"|;\
+ s|# Modes.*| Modes $modes|;\
s|# EndSubSection.*| EndSubSection|;" -i $xfc
fi