aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/get_battery_status4
-rwxr-xr-xbin/get_cpu_status1
-rwxr-xr-xbin/get_load1
-rwxr-xr-xbin/get_mem2
4 files changed, 5 insertions, 3 deletions
diff --git a/bin/get_battery_status b/bin/get_battery_status
index bc4b819..57af321 100755
--- a/bin/get_battery_status
+++ b/bin/get_battery_status
@@ -23,7 +23,5 @@ if [ -x /usr/bin/acpi ]; then
echo "$battery_percentage%"
fi
fi
-else
- exit 1
fi
-
+exit 0
diff --git a/bin/get_cpu_status b/bin/get_cpu_status
index 2aece18..18b5c16 100755
--- a/bin/get_cpu_status
+++ b/bin/get_cpu_status
@@ -8,3 +8,4 @@ proc_output=$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {
proc_output=${proc_output#" "}
echo "$proc_output%"
+exit 0
diff --git a/bin/get_load b/bin/get_load
index 7991d26..f409630 100755
--- a/bin/get_load
+++ b/bin/get_load
@@ -6,3 +6,4 @@ uptime_output=$(uptime| cut -d',' -f4,5,6|cut -d':' -f2)
uptime_output=${uptime_output#" "}
echo "$uptime_output"
+exit 0
diff --git a/bin/get_mem b/bin/get_mem
index fa2a453..fc49561 100755
--- a/bin/get_mem
+++ b/bin/get_mem
@@ -7,3 +7,5 @@ mem_output=""
mem_output="$(free -m| grep "Mem:"| awk '{printf $3 "/" $2 " ("} {printf ("%1.3f", $3/$2)} {printf ")"}')"
echo "$mem_output"
+exit 0
+