# Xorg auto configuration.
#if [ ! -s /etc/X11/xorg.conf -a -x /usr/bin/Xorg ]; then
echo "Configuring Xorg..."
# $HOME is not yet set.
HOME=/root
Xorg -configure
mv -f /root/xorg.conf.new /etc/X11/xorg.conf
sed -i 's|/usr/bin/Xvesa|/usr/bin/Xorg|' /etc/slim.conf
sed -i s/"^xserver_arguments"/'\#xserver_arguments'/ /etc/slim.conf
tazx config-xorg
#fi
# Screen size config for slim/Xvesa (last config dialog before login).
if [ ! -s /etc/X11/screen.conf -a -x /usr/bin/slim ]; then
# $HOME is not yet set.
HOME=/root
if grep -q "xarg=*" /proc/cmdline; then
# Add an extra argument to xserver_arguments (xarg=-2button)
XARG=`cat /proc/cmdline | sed 's/.*xarg=\([^ ]*\).*/\1/'`
sed -i "s|-screen|$XARG -screen|" /etc/slim.conf
fi
if grep -q "screen=*" /proc/cmdline; then
export NEW_SCREEN=`cat /proc/cmdline | sed 's/.*screen=\([^ ]*\).*/\1/'`
if [ "$NEW_SCREEN" = "text" ]; then
echo -n "Disabling X login manager: slim..."
sed -i s/'slim'/''/ /etc/rcS.conf
status
else
tazx `cat /etc/X11/wm.default`
fi
else
tazx `cat /etc/X11/wm.default`
fi
fi
if [ -x /usr/bin/Xorg ]; then
* Ernia wrote:
if i've saved my rootfs in a machine and try to boot in another machine /etc/x11/xorg.conf exists, but this does not mean that it is good for the machine i'm booting in.
It looks like you're new here. If you want to get involved, click one of these buttons!