summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-08-28 09:08:44 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-08-28 09:08:44 +0200
commit8d2815b5b5174165cc008814a332e94900ec4624 (patch)
treedb458f0d40c8258d040727be80a2022f83d1fee8 /bin
parent2e36ac9b78816256d70aae8fd334abbc9473bd52 (diff)
downloadpacman-offline-8d2815b5b5174165cc008814a332e94900ec4624.tar.gz
pacman-offline-8d2815b5b5174165cc008814a332e94900ec4624.tar.zst
show the timer (if active)
This has no output if the timer is stopped. But the timer is shown if a previous run startet it or it is enabled.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pacman-offline3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline
index 69e77c0..37ae033 100755
--- a/bin/pacman-offline
+++ b/bin/pacman-offline
@@ -96,3 +96,6 @@ if [ ${REBOOT} -eq 1 ]; then
elif [ ${TIMER} -eq 1 ]; then
systemctl start pacman-offline-reboot.timer
fi
+
+# show the timer (if active)
+systemctl --quiet list-timers pacman-offline-reboot.timer