diff options
author | 2017-08-26 07:18:35 +0300 | |
---|---|---|
committer | 2017-08-26 07:18:35 +0300 | |
commit | c9eaaf84062d700f87d65507076d05671c8c5988 (patch) | |
tree | 3436df8488b1752efec7020bffee51d5df6b655e | |
parent | Included simple root check (diff) | |
download | GSE-c9eaaf84062d700f87d65507076d05671c8c5988.tar.gz GSE-c9eaaf84062d700f87d65507076d05671c8c5988.tar.bz2 GSE-c9eaaf84062d700f87d65507076d05671c8c5988.zip |
rdep script for the simple root check
-rwxr-xr-x | config.d/controller/modules/functions/check_con.sh | 7 |
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 |