mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-07 06:33:38 +01:00
feat(config): support for genkernel kernel config file (#239)
Add support for distributions using genkernel.
This commit is contained in:
parent
b2f64e1132
commit
e8890ffac6
@ -1487,6 +1487,8 @@ if [ "$opt_live" = 1 ]; then
|
|||||||
opt_config="/lib/modules/$(uname -r)/config"
|
opt_config="/lib/modules/$(uname -r)/config"
|
||||||
elif [ -e "/boot/config-$(uname -r)" ]; then
|
elif [ -e "/boot/config-$(uname -r)" ]; then
|
||||||
opt_config="/boot/config-$(uname -r)"
|
opt_config="/boot/config-$(uname -r)"
|
||||||
|
elif [ -e "/etc/kernels/kernel-config-$(uname -m)-$(uname -r)" ]; then
|
||||||
|
opt_config="/etc/kernels/kernel-config-$(uname -m)-$(uname -r)"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_info "Checking for vulnerabilities against specified kernel"
|
_info "Checking for vulnerabilities against specified kernel"
|
||||||
|
Loading…
Reference in New Issue
Block a user