summaryrefslogtreecommitdiffstats
path: root/adei/check_adei_control.sh
diff options
context:
space:
mode:
Diffstat (limited to 'adei/check_adei_control.sh')
-rwxr-xr-xadei/check_adei_control.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/adei/check_adei_control.sh b/adei/check_adei_control.sh
new file mode 100755
index 0000000..f6570e1
--- /dev/null
+++ b/adei/check_adei_control.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. $(dirname "$0")/adei.sh
+
+status=1
+
+
+adei_init "$@"; code=$?
+adei_process_error $code
+
+
+cgroup="${adei_args[0]}"
+resp=$(adei_value_query "control.php?target=get&control_group=$cgroup"); code=$?
+adei_process_error "$code" "$resp" "ADEI/Control"
+
+echo "$status"