diff --git a/kernelcheck b/kernelcheck index 9d89d5b..c56bb63 100755 --- a/kernelcheck +++ b/kernelcheck @@ -6,6 +6,14 @@ current="$(uname -r)" user="$(users)" cores=$(nproc) +if [ -f /tmp/kernelcheck.pid ] +then + exit 0 +elif [ ! -f /tmp/kernelcheck.pid ] +then + touch /tmp/kernelcheck.pid +fi + # Function body function verify(){ local sign=$1 out=