Clear X server config on startup

This commit is contained in:
Josh.5
2022-10-06 22:38:04 +13:00
parent 469b12087d
commit 1fbfd235f1

View File

@@ -46,6 +46,9 @@ function configure_x_server {
sed -i "s/allowed_users=console/allowed_users=anybody/" /etc/X11/Xwrapper.config
fi
# Remove previous Xorg config
rm -f /etc/X11/xorg.conf
# Ensure the X socket path exists
mkdir -p /tmp/.X11-unix
@@ -82,10 +85,6 @@ function configure_x_server {
else
echo "Leaving evdev inputs disabled"
fi
# Run initial X server configuration
echo "Runing intial X configuration."
X -configure && cp -fv /root/xorg.conf.new /etc/X11/xorg.conf
}
if ([ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then