I have a Debian Jessie build, and I want to add keyboard shutdown. I've tried the following, without any success:
Attempt 1
To /etc/inittab
I added
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
I also tried
ca::ctrlaltdel:/sbin/shutdown -t1 -a -r now
Then I tried to create a file /etc/init/control-alt-delete.conf
and added:
start on control-alt-delete
exec /sbin/shutdown -h now "Control-Alt-Delete pressed"
Attempt 2
I also, installed kbd
and to rc.local
added:
loadkeys << EOF
alt keycode 103 = KeyboardSignal
EOF
And to /etc/inittab
added:
kb::kbrequest:/sbin/shutdown -h now
Again nothing.
Attempt 3
To /etc/kbd/default.map.gz
, I added
keycode 111 = Select
altgr control keycode 111 = KeyboardSignal
control alt keycode 111 = KeyboardSignal
And to /etc/inittab
I added
kb:12345:kbrequest:/sbin/shutdown -t1 -h now
I've had no success with any of these attempts. I obviously restarted after each attempt.
My ultimate goal is to allow reboot from the login prompt page when you use console without GUI
Help is appreciated