Kernel: Modify how kernel_shorthand works in BSDs

This commit is contained in:
Muhammad Herdiansyah 2016-12-03 11:06:53 +07:00
parent 9d6fbc6850
commit 63c532f2c5
1 changed files with 1 additions and 1 deletions

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 ;;