about summary refs log tree commit diff
path: root/zzz
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-04-09 07:54:52 +0200
committerJuan RP <xtraeme@gmail.com>2015-04-09 07:54:52 +0200
commit8ad69ea409e42e81b672808d8d26cb01181699c8 (patch)
treea75c9d88382bddce9837cd89150f7a292df8f071 /zzz
parentc6c53024e237ea395b97991c04cdc39b1bb98eef (diff)
parentf11386d2dc9b91cd27f362b69d999bb2ece40d18 (diff)
downloadrunit-void-8ad69ea409e42e81b672808d8d26cb01181699c8.tar.gz
runit-void-8ad69ea409e42e81b672808d8d26cb01181699c8.tar.xz
runit-void-8ad69ea409e42e81b672808d8d26cb01181699c8.zip
Merge pull request #33 from nmeum/style
Style fixes
Diffstat (limited to 'zzz')
-rwxr-xr-xzzz8
1 files changed, 4 insertions, 4 deletions
diff --git a/zzz b/zzz
index ead0051..69fd3b1 100755
--- a/zzz
+++ b/zzz
@@ -39,18 +39,18 @@ test -w /sys/power/state || fail "sleep permission denied"
 (
 flock -n 9 || fail "another instance of zzz is running"
 
-echo -n "Zzzz... "
+printf "Zzzz... "
 
 for hook in /etc/zzz.d/suspend/*; do
   [ -x "$hook" ] && "$hook"
 done
 
 case "$ZZZ_MODE" in
-  standby) echo -n freeze >/sys/power/state || fail "standby failed";;
-  suspend) echo -n mem >/sys/power/state || fail "suspend failed";;
+  standby) printf freeze >/sys/power/state || fail "standby failed";;
+  suspend) printf >/sys/power/state || fail "suspend failed";;
   hibernate)
 	echo $ZZZ_HIBERNATE_MODE >/sys/power/disk
-	echo -n disk >/sys/power/state || fail "hibernate failed";;
+	printf disk >/sys/power/state || fail "hibernate failed";;
   noop) sleep 5;;
 esac