From c9eaaf84062d700f87d65507076d05671c8c5988 Mon Sep 17 00:00:00 2001 From: "Christos.K" Date: Sat, 26 Aug 2017 07:18:35 +0300 Subject: rdep script for the simple root check --- config.d/controller/modules/functions/check_con.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 config.d/controller/modules/functions/check_con.sh 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 -- cgit v1.2.3-65-gdbad