aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2018-12-08 21:46:19 +0100
committerDavid Runge <dave@sleepmap.de>2018-12-08 21:46:19 +0100
commit54f7f1ccba1589099be01b02435a318ac2b0f018 (patch)
tree245761fdc20fdde21ac561d1fe2e629f308dd3c9
parent1bf046edd2f2798147c753deebdf283401b54aac (diff)
downloaddotfiles-54f7f1ccba1589099be01b02435a318ac2b0f018.tar.gz
dotfiles-54f7f1ccba1589099be01b02435a318ac2b0f018.tar.bz2
dotfiles-54f7f1ccba1589099be01b02435a318ac2b0f018.tar.xz
dotfiles-54f7f1ccba1589099be01b02435a318ac2b0f018.zip
bin/realtime-suggestions: Adding check for Linux kernel.
-rwxr-xr-xbin/realtime-suggestions8
1 files changed, 8 insertions, 0 deletions
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