Fix dmesg restriction (#106)
* Fix dmesg restriction * Update installer.sh Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
928e46db76
commit
80cd6d42a6
1 changed files with 7 additions and 0 deletions
|
@ -64,6 +64,13 @@ else
|
||||||
fi
|
fi
|
||||||
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
|
# Parse command line parameters
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
arg="$1"
|
arg="$1"
|
||||||
|
|
Loading…
Reference in a new issue