iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
btrbk fixes
[distro-setup]
/
filesystem
/
usr
/
local
/
bin
/
spend
diff --git
a/filesystem/usr/local/bin/spend
b/filesystem/usr/local/bin/spend
index 5c6b3fec592e6aa14281d7fdd05489c331ab75e8..f4b68b781ea6039af67b6a761938f2ebeb726d2b 100755
(executable)
--- a/
filesystem/usr/local/bin/spend
+++ b/
filesystem/usr/local/bin/spend
@@
-1,3
+1,9
@@
-#!/bin/
sh
+#!/bin/
bash -r
-systemctl suspend
+for (( i=0; i<3; i++ )); do
+ systemctl suspend
+ echo $$ suspending in 180 seconds
+ sleep 180
+done
+wall -n spend: $$ shutdown in 180 seconds
+shutdown