summaryrefslogtreecommitdiffstats
path: root/build_tools/larch8/larch0/profiles/oldprofiles/xmaxi/rootoverlay/etc/X11/xinit/xorg.conf.set
blob: 44302643b130c414af85468b4f541300a5bd8118 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
if [ -f /etc/X11/xorg.conf.base ]; then
    cp -f /etc/X11/xorg.conf.base /etc/X11/xorg.conf
    for x in $(cat /proc/cmdline); do
        [ "${x}" = "nox" ] && :> /tmp/_nox_
        [ "${x}" = "xvesa" ] && sed 's|^#xvesa||' -i /etc/X11/xorg.conf
        [ "${x}" = "nodri" ] && sed 's|^#nodri||' -i /etc/X11/xorg.conf
    done
fi