Merge pull request #485 from konimex/master

Kernel: Modify how kernel_shorthand works in BSDs
This commit is contained in:
Dylan Araps 2016-12-03 15:44:45 +11:00 committed by GitHub
commit 9a0a996f89

View file

@ -273,7 +273,7 @@ get_kernel() {
esac
# Hardcode kernel settings in BSDs
if [[ "$os" == "BSD" && ! "$distro" =~ (PacBSD|PCBSD) ]]; then
if [[ "$os" == "BSD" && "$distro" =~ "$kernel_name" ]]; then
case "$distro_shorthand" in
"on" | "tiny") kernel="$kernel_version" ;;
*) unset kernel ;;