disable ctrl+alt+backspace

This commit is contained in:
Christopher Jeffrey 2014-09-18 18:19:47 -07:00
parent b74256d2b9
commit 8bdd144daa

View File

@ -154,7 +154,9 @@ disable_sysrq(void) {
#if POWEROFF
// Needs sudo privileges - alter your /etc/sudoers file:
// [username] [hostname] =NOPASSWD: /usr/bin/tee /proc/sys/kernel/sysrq
system("echo 0 | sudo tee /proc/sys/kernel/sysrq > /dev/null");
system("echo 0 | sudo tee /proc/sys/kernel/sysrq > /dev/null &");
// Disable ctrl+alt+backspace
system("setxkbmap -option &");
#else
return;
#endif