Test Script

This commit is contained in:
Michael Grote 2022-07-17 12:59:31 +02:00
parent 4dd494a62f
commit ea8d25ef8b

View file

@ -11,11 +11,9 @@ function lock {
rm -f /tmp/screen_locked.png rm -f /tmp/screen_locked.png
} }
function reboot { function reboot {
lock
sudo systemctl reboot sudo systemctl reboot
} }
function shutdown { function shutdown {
lock
sudo systemctl shutdown sudo systemctl shutdown
} }
function suspend { function suspend {
@ -69,4 +67,6 @@ if [[ -n "$1" ]]; then
esac esac
else else
lock lock
sleep 60
display_off
fi fi