preinst
This commit is contained in:
parent
004f2532e0
commit
e9d104fb5c
2 changed files with 8 additions and 1 deletions
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
# 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
|
|
@ -1 +0,0 @@
|
|||
0
|
Loading…
Reference in a new issue