Test Script
This commit is contained in:
parent
4dd494a62f
commit
ea8d25ef8b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue