summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorQue Quotion2017-03-30 01:51:48 +0900
committerQue Quotion2017-03-30 01:51:48 +0900
commit39fd2cc3fd8c887d43ec8d7beb34639d85c7e510 (patch)
treebf5de522a97a4f37b0d6aeb2e8237bd4e6e894e0
parentb9a4e5a996e2b57d57125d9f4a6b6d376c39502b (diff)
downloadaur-39fd2cc3fd8c887d43ec8d7beb34639d85c7e510.tar.gz
zero, or wait; returns 0 on exit for the systemd script
-rwxr-xr-xthrottle12
1 files changed, 6 insertions, 6 deletions
diff --git a/throttle b/throttle
index 3435e5ab5e06..12438bd98fd4 100755
--- a/throttle
+++ b/throttle
@@ -148,7 +148,7 @@ while (( "$#" )); do
unset GOVERNOR XPSTURBO HYPERTHREADS ENERGYPERF BACKLIGHT LAPTOP DIRTYWBC NMIDOG \
POLICY APM AAM CONTROL AUTOSUSPEND POWERSAVE CONTROLLER \
WLPOWERSAVE WOLA WOLB LEDBRIGHT NVPM
- [[ -n "${1}" ]] && wait # Hey, let's stop! :) *stops* ... YAY! =D
+ [[ -z "${1}" ]] || wait # Hey, let's stop! :) *stops* ... YAY! =D
;;
ht*)
case "${1}" in \
@@ -164,7 +164,7 @@ while (( "$#" )); do
printf "${HYPERTHREADS}" > "${i}" & done &
[[ -n "${SHIFT}" ]] && shift "${SHIFT}" || shift
unset HYPERTHREADS SHIFT
- [[ -n "${1}" ]] && wait
+ [[ -z "${1}" ]] || wait
;;
gov*)
case "${1}" in \
@@ -180,7 +180,7 @@ while (( "$#" )); do
printf "${GOVERNOR}" > "${i}" & done &
[[ -n "${SHIFT}" ]] && shift "${SHIFT}" || shift
unset GOVERNOR SHIFT
- [[ -n "${1}" ]] && wait
+ [[ -z "${1}" ]] || wait
;;
turbo*)
case "${1}" in \
@@ -196,7 +196,7 @@ while (( "$#" )); do
printf "${XPSTURBO}" > /sys/devices/system/cpu/intel_pstate/no_turbo &
[[ -n "${SHIFT}" ]] && shift "${SHIFT}" || shift
unset XPSTURBO SHIFT
- [[ -n "${1}" ]] && wait
+ [[ -z "${1}" ]] || wait
;;
backlight)
case "${2}" in \
@@ -209,7 +209,7 @@ while (( "$#" )); do
printf "${BACKLIGHT}" > "${i}" & done &
[[ -n "${SHIFT}" ]] && shift "${SHIFT}" || shift
unset BACKLIGHT SHIFT
- [[ -n "${1}" ]] && wait
+ [[ -z "${1}" ]] || wait
;;
gpu*)
case "${1}" in \
@@ -226,7 +226,7 @@ while (( "$#" )); do
DISPLAY=":0.0" nvidia-settings -a [gpu:0]/GPUPowerMizerMode="${NVPM}" > /dev/null &
[[ -n "${SHIFT}" ]] && shift "${SHIFT}" || shift
unset NVPM SHIFT
- [[ -n "${1}" ]] && wait
+ [[ -z "${1}" ]] || wait
;;
check)
printf "\nHyperthreads\n/sys/devices/system/cpu/cpu*/online\n"