<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 26, 2016 at 3:31 PM, Martin Vogt <span dir="ltr"><<a href="mailto:mvogt1@gmail.com" target="_blank">mvogt1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><br></div>Hello list,<br><br></div>in a desktop session it is common behaviour to have a pop up dialog<br>if the user presses CTRL+ALT+DEL.<br></div><div>If the user press cancel, the original desktop is resumed.<br></div><div><br></div><div>I like to have the same functionality on a virtual console.<br></div><div>If the user hits CTRL+ALT+DEL on /dev/tty2 I can display a dialog:<br><br>[ ] reboot<br>[ ] halt   <br>[ok] [cancel]<br><br></div><div>and if the user hits cancel the focus should switch back to the virtual console, where<br>CTRL+ALT+DEL was pressed.<br><br></div><div>I need the console in a shutdownselect.service file (and in the script)<br></div><div>where the user pressed CTRL+ALT+DEL.<br><br></div><div>I cannot figure out how to do it.<br><br></div><div>The script started from systemd gets for the tty command "not a tty"<br></div></div></blockquote><div><br></div><div>StandardOutput=tty? /sys/class/tty/tty0/active?</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>