From 8d2815b5b5174165cc008814a332e94900ec4624 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Aug 2023 09:08:44 +0200 Subject: 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. --- bin/pacman-offline | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-70-g09d2