Upstart: accept user input to switch xorg.conf
- by Utaal
Hi all!
I'm trying to get a startup script requiring user input running before gdm starts (the script should allow me to choose from a list of xorg.conf's the one I'd like to use for the current session).
Already tried creating a pregdm.conf in /etc/init, containing:
start on filesystem
stop on runlevels [06]
# ...
console output
script
# script that uses read to gather user input and replaces xorg.conf with the selected one
end script
and changing start on in /etc/init/gdm.conf to:
start on (filesystem
and started dbus
and started pregdm
and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
or stopped udevtrigger))
Echos are displayed in console but I can't make it wait for user input: gdm is started straight away.
Any pointers?
Thanks a lot