Magellan Linux

Diff of /trunk/grubby/new-kernel-pkg

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2963 by niro, Wed Jun 29 14:39:19 2016 UTC revision 2964 by niro, Wed Jun 29 14:45:50 2016 UTC
# Line 907  then Line 907  then
907  fi  fi
908    
909  # set this as the default if we have the package and it matches  # set this as the default if we have the package and it matches
910  if [[ ${mode} = --install ]] && [[ ${UPDATEDEFAULT} = yes ]] && [[ -n ${package} ]] &&  if [[ ${mode} = --install ]] && [[ ${UPDATEDEFAULT} = yes ]] && [[ -n ${package} ]] && [[ -n ${DEFAULTKERNEL} ]]
  [[ -n ${DEFAULTKERNEL} ]] && [[ ${package} = ${DEFAULTKERNEL} ]]  
911  then  then
912   makedefault="--make-default"   if [[ ${package} = ${DEFAULTKERNEL} ]] || [[ ${package}-core = ${DEFAULTKERNEL} ]]
913   [[ -n ${verbose} ]] && echo "making it the default based on config"   then
914     makedefault="--make-default"
915     [[ -n ${verbose} ]] && echo "making it the default based on config"
916     fi
917  fi  fi
918    
919  if [[ ${moddep} = make ]]  if [[ ${moddep} = make ]]

Legend:
Removed from v.2963  
changed lines
  Added in v.2964