pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

[Howto]Make CtrlAltDel poweroff not reboot

Sat Mar 02, 2013 3:01 pm

Code: Select all

ln -sf /usr/lib/systemd/system/poweroff.target /etc/systemd/system/ctrl-alt-del.target
That's it, attached USB keyboard CtrlAltDel now powers off instead of reboot

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: [Howto]Make CtrlAltDel poweroff not reboot

Sun Mar 03, 2013 3:37 am

I count on CTL-ALT-DEL to enable me to reboot when keyboard commands are not recognized, but CTL-ALT-DEL is. Hope that change will not become part of the firmware?
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: [Howto]Make CtrlAltDel poweroff not reboot

Sun Mar 03, 2013 11:08 am

It won't.
I know you run headless but I was thinking of other headless uses.
Or yourself in earlier rpi days where you wanted to examine logs cleanly shut down

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: [Howto]Make CtrlAltDel poweroff not reboot

Sun Mar 03, 2013 11:13 am

Not sure I completely understand, right now I need to BOTH poweroff safely and reboot. I am nervous about having to frequently reboot with CTL-ALT-DEL without syncing first, but no choice, it is still better than poweroff. We are supposed to sync before poweroff, aren't we? Still having these issues, but at least no longer having to constantly reflash an image.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

BETLOG
Posts: 4
Joined: Wed Apr 13, 2016 1:03 pm

Re: [Howto]Make CtrlAltDel poweroff not reboot

Thu May 12, 2016 11:56 am

Nice. Thanks for that
I was tinkering with this under Kali for RPi.

Code: Select all

ctrl-alt-del = poweroff
ln -sf /usr/lib/systemd/user/exit.target /etc/systemd/system/ctrl-alt-del.target

Return to “Arch”