aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2018-12-08 21:48:05 +0100
committerDavid Runge <dave@sleepmap.de>2018-12-08 21:48:05 +0100
commit666d11889761eb8f47a3421feb0fa9d007930b1c (patch)
tree76d2ed3926ce0ee700dcc7250526876e476b13e4
parentc70c214bbc0ffde5b0f665acc8845fb3466c6c28 (diff)
parent54f7f1ccba1589099be01b02435a318ac2b0f018 (diff)
downloaddotfiles-666d11889761eb8f47a3421feb0fa9d007930b1c.tar.gz
dotfiles-666d11889761eb8f47a3421feb0fa9d007930b1c.tar.bz2
dotfiles-666d11889761eb8f47a3421feb0fa9d007930b1c.tar.xz
dotfiles-666d11889761eb8f47a3421feb0fa9d007930b1c.zip
Merge branch 'master' of git.sleepmap.de:config/dotfiles
* 'master' of git.sleepmap.de:config/dotfiles: 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 45a1fff..cc552fe 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