From fbf054c6d588ea76055a9359a88d5b3168b3ee41 Mon Sep 17 00:00:00 2001 From: mint_tube Date: Sun, 1 Jun 2025 03:51:59 +0300 Subject: [PATCH] Create is_active.sh A script for checking whether zapret systemctl is running --- is_active.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 is_active.sh diff --git a/is_active.sh b/is_active.sh new file mode 100644 index 0000000..9f87318 --- /dev/null +++ b/is_active.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ $(systemctl is-active zapret) = 'active' ]; then + echo 'zapret: on' +else + echo 'zapret: off' +fi