disable power button on PJ
This commit is contained in:
parent
f3b4c00691
commit
bf77c16c94
1 changed files with 7 additions and 0 deletions
7
init.sh
7
init.sh
|
@ -9,3 +9,10 @@ ln /home/htpc/scripts/PJ/keyboard.xml /home/htpc/.kodi/userdata/keymaps/keyboard
|
||||||
rm /home/htpc/.kodi/userdata/advancedsettings.xml
|
rm /home/htpc/.kodi/userdata/advancedsettings.xml
|
||||||
export $(grep -v '^#' /home/htpc/scripts/PJ/secrets.env | xargs)
|
export $(grep -v '^#' /home/htpc/scripts/PJ/secrets.env | xargs)
|
||||||
envsubst < /home/htpc/scripts/PJ/advancedsettings.xml > /home/htpc/.kodi/userdata/advancedsettings.xml
|
envsubst < /home/htpc/scripts/PJ/advancedsettings.xml > /home/htpc/.kodi/userdata/advancedsettings.xml
|
||||||
|
|
||||||
|
# disable the power button on PJ, ignore if already commented
|
||||||
|
# this usually doesn't revert, but occasionally does after updating system
|
||||||
|
# system may require a reboot once this runs
|
||||||
|
keyboard_file=/usr/share/X11/xkb/symbols/inet
|
||||||
|
sed -i '/^\/\//!{/XF86PowerOff/s/^/\/\//}' $keyboard_file
|
||||||
|
sed -i '/^\/\//!{/XF86Suspend/s/^/\/\//}' $keyboard_file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue