From 54f7f1ccba1589099be01b02435a318ac2b0f018 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 8 Dec 2018 21:46:19 +0100 Subject: bin/realtime-suggestions: Adding check for Linux kernel. --- bin/realtime-suggestions | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin') diff --git a/bin/realtime-suggestions b/bin/realtime-suggestions index 632825a..232e17a 100755 --- a/bin/realtime-suggestions +++ b/bin/realtime-suggestions @@ -14,6 +14,13 @@ check_root() { fi } +check_kernel_name() { + if [[ "$(uname -s)" != *Linux* ]]; then + echo "This script needs to be run on a Linux system." + exit 1 + fi +} + check_filesystems() { local mount_points=() local mount_point_data=() @@ -198,6 +205,7 @@ check_for_useful_tools() { done } +check_kernel_name check_root check_filesystems check_groups -- cgit v1.2.3-54-g00ecf