# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Die Sep 04 01:44:19 CEST 2007 [mika]
################################################################################
# make sure /tmp is writeable {{{
Option \"MaxSpeed\" \"2.00\"
Option \"AccelFactor\" \"0.030\"
Option \"UpDownScrolling\" \"1\"
- Option \"EmulateMidButtonTime\" \"75\"
+ Option \"EmulateMiddleButtonTime\" \"75\"
Option \"CircularScrolling\" \"1\"
Option \"CircScrollDelta\" \"0.1\"
Option \"CircScrollTrigger\" \"8\"
function runit
{
writeconfig
+ if [ "$(readlink /etc/X11/X)" = /bin/true ] ; then
+ print "$bold_color$fg[red]Fatal: /etc/X11/X is a symlink to /bin/true."
+ print "Fix it via running 'ln -sf /usr/bin/Xorg /etc/X11/X'"
+ exit 10
+ fi
if [ -z "$NOSTART" ] ; then
print "$reset_color"
if [ -x /etc/init.d/xorg-common ] ; then
if [ -z "$DISPLAY" ] ; then
print "$bold_color$fg[green]Now trying to run startx.$reset_color"
startx $XINITRC -- $XOPTS
+ return 1
else
print "$bold_color$fg[green]Now trying to run startx on display $DISPLAY.$reset_color"
startx $XINITRC -- :$DISPLAY $XOPTS
+ return 1
fi
else
print "$bold_color$fg[blue]Not running startx as requested via option.$reset_color"
fi
- return 1
}
# }}}