Fix dmesg restriction
This commit is contained in:
parent
928e46db76
commit
c066706716
1 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue