Fix dmesg restriction

This commit is contained in:
Pascal Vizeli 2020-08-21 16:20:08 +02:00 committed by GitHub
parent 928e46db76
commit c066706716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,13 @@ else
fi
fi
# Check dmesg access
if ! dmesg > /dev/null; 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"