cem-utils

Random utilities
git clone git://git.ckyln.com/cem-utils.git
Log | Files | Refs | README

commit 5c5709d4bdb756647dd3bf2c60eeaa112cf344f8
parent 80336d3dccfa77ccbc33b41c87805bb1b6e63760
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon,  3 Feb 2020 12:29:54 +0300

nap: removed unnecessary usage function

Diffstat:
Mnap/nap | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/nap/nap b/nap/nap @@ -1,8 +1,7 @@ #!/bin/sh # nap - not the full zzz, but a light one -usage() { printf 'Usage: %s\nThere are not many options when taking a nap.\n' "${0##*/}" ; exit 1 ;} -[ "$1" ] && usage +[ "$1" ] && { printf 'Usage: %s\nThere are not many options when taking a nap.\n' "${0##*/}" ; exit 1 ;} grep -q mem /sys/power/state || { printf "Suspend not supported.\n"; exit 1 ;} test -w /sys/power/state || { printf "Sleep permission denied.\n" ; exit 1 ;} for hook in /etc/zzz.d/suspend/* ; do