From 0de638b1e925400cc0e517f3db94008ca450e71f Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 28 Sep 2014 16:15:27 +0200 Subject: Adding scripts to check weather currently running a realtime or vanilla kernel. --- bin/check-rt | 11 +++++++++++ bin/check-vanilla | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100755 bin/check-rt create mode 100755 bin/check-vanilla (limited to 'bin') diff --git a/bin/check-rt b/bin/check-rt new file mode 100755 index 0000000..5dc04cd --- /dev/null +++ b/bin/check-rt @@ -0,0 +1,11 @@ +#!/bin/env bash +#Check if the kernel name has -rt in it (we're running Realtime Kernel) + +if [[ $(uname -r) == *-rt* ]];then + echo "Success: Running $(uname -r)." + exit 0 +else + echo "Failure: Running $(uname -r)." + exit 1 +fi + diff --git a/bin/check-vanilla b/bin/check-vanilla new file mode 100755 index 0000000..6b4bdd4 --- /dev/null +++ b/bin/check-vanilla @@ -0,0 +1,11 @@ +#!/bin/env bash +#Check if the kernel name has -rt in it (we're running Realtime Kernel) + +if [[ $(uname -r) == *-rt* ]];then + echo "Failure: Running $(uname -r)." + exit 1 +else + echo "Success: Running $(uname -r)." + exit 0 +fi + -- cgit v1.2.3-70-g09d2