needs to run as root

This commit is contained in:
zerf58 2025-02-20 20:47:20 -08:00 committed by GitHub
parent bf77c16c94
commit afcc7671bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,5 +14,5 @@ envsubst < /home/htpc/scripts/PJ/advancedsettings.xml > /home/htpc/.kodi/userdat
# 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
sudo sed -i '/^\/\//!{/XF86PowerOff/s/^/\/\//}' $keyboard_file
sudo sed -i '/^\/\//!{/XF86Suspend/s/^/\/\//}' $keyboard_file