diff --git a/installkernel-bls b/installkernel-bls index d66c44a..f2f607e 100755 --- a/installkernel-bls +++ b/installkernel-bls @@ -20,8 +20,6 @@ # Author(s): tyson@rwii.com # -[[ -f /etc/default/grub ]] && . /etc/default/grub - usage() { echo "Usage: `basename $0` " >&2 exit 1 @@ -79,7 +77,7 @@ cp $MAPFILE $INSTALL_PATH/System.map-$KERNEL_VERSION ln -fs ${RELATIVE_PATH}$INSTALL_PATH/$KERNEL_NAME-$KERNEL_VERSION $LINK_PATH/$KERNEL_NAME ln -fs ${RELATIVE_PATH}$INSTALL_PATH/System.map-$KERNEL_VERSION $LINK_PATH/System.map -if [ -n "$cfgLoader" ] && [ "x${GRUB_ENABLE_BLSCFG}" = "xtrue" ]; then +if [ -n "$cfgLoader" ]; then kernel-install add $KERNEL_VERSION $INSTALL_PATH/$KERNEL_NAME-$KERNEL_VERSION exit $? fi