summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/install_prereq6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/install_prereq b/contrib/install_prereq
index 56463b4..dac0189 100755
--- a/contrib/install_prereq
+++ b/contrib/install_prereq
@@ -64,6 +64,9 @@ handle_debian() {
esac
echo "# Kernel source not found. Installing $kernel_package"
fi
+ if [ "$extra_packs$kernel_package" = '' ]; then
+ return
+ fi
$testcmd apt-get install -y $extra_packs $kernel_package
}
@@ -87,6 +90,9 @@ handle_rh() {
echo "#"
echo "# and then reboot to upgrade to the newly installed kernel."
fi
+ if [ "$extra_packs$kernel_package" = '' ]; then
+ return
+ fi
$testcmd yum install -y $extra_packs $kernel_package
}