From 80cd6d42a643a79f22c29798d5e3954a2fe374ad Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 21 Aug 2020 17:04:39 +0200 Subject: [PATCH] Fix dmesg restriction (#106) * Fix dmesg restriction * Update installer.sh Co-authored-by: Franck Nijhof Co-authored-by: Franck Nijhof --- installer.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installer.sh b/installer.sh index c69c0d6..c8bf056 100644 --- a/installer.sh +++ b/installer.sh @@ -64,6 +64,13 @@ else fi fi +# Check dmesg access +if [[ "$(sysctl --values kernel.dmesg_restrict)" != "0" ]]; then + info "Fix kernel dmesg restriction" + echo 0 > /proc/sys/kernel/dmesg_restrict + echo "kernel.dmesg_restrict=0" >> /etc/sysctl.conf +fi + # Parse command line parameters while [[ $# -gt 0 ]]; do arg="$1"