X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fusr%2Flocal%2Fbin%2Fspend;h=9387339bb93a88de39b4fde063c509e5e456caa4;hb=9c77c557e60d21caceeef1e78e35b35ed968fca9;hp=5c6b3fec592e6aa14281d7fdd05489c331ab75e8;hpb=d6def754cd241538c61456536b52ee51cbd85b42;p=distro-setup diff --git a/filesystem/usr/local/bin/spend b/filesystem/usr/local/bin/spend index 5c6b3fe..9387339 100755 --- 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 + wall -n spend: $$ suspending in 30 seconds + sleep 30 +done +wall -n spend: $$ shutdown in 30 seconds +shutdown