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