Upstart: accept user input to switch xorg.conf
Posted
by
Utaal
on Super User
See other posts from Super User
or by Utaal
Published on 2011-02-15T13:51:13Z
Indexed on
2011/02/15
15:28 UTC
Read the original article
Hit count: 239
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
© Super User or respective owner