aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos.K <freedomrfox@gmail.com>2017-08-26 07:18:35 +0300
committerChristos.K <freedomrfox@gmail.com>2017-08-26 07:18:35 +0300
commitc9eaaf84062d700f87d65507076d05671c8c5988 (patch)
tree3436df8488b1752efec7020bffee51d5df6b655e
parentIncluded simple root check (diff)
downloadGSE-c9eaaf84062d700f87d65507076d05671c8c5988.tar.gz
GSE-c9eaaf84062d700f87d65507076d05671c8c5988.tar.bz2
GSE-c9eaaf84062d700f87d65507076d05671c8c5988.zip
rdep script for the simple root check
-rwxr-xr-xconfig.d/controller/modules/functions/check_con.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.d/controller/modules/functions/check_con.sh b/config.d/controller/modules/functions/check_con.sh
new file mode 100755
index 0000000..019070a
--- /dev/null
+++ b/config.d/controller/modules/functions/check_con.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if echo "$(emerge --version 2>/dev/null | tail -n 1)" | grep -q "$(uname -r)"; then
+ exit 0
+else
+ exit 1
+fi \ No newline at end of file