Magellan Linux

Diff of /mage/branches/alx-0_6_0/include/alx.minc

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

revision 2517 by niro, Thu Jun 30 15:22:45 2011 UTC revision 2518 by niro, Thu Jun 30 15:25:12 2011 UTC
# Line 96  alx_grub_update() Line 96  alx_grub_update()
96   echo "timeout 3" >> ${grubconf}   echo "timeout 3" >> ${grubconf}
97   # using roots current password if one was set   # using roots current password if one was set
98   pass="$(grep '^root:' /etc/shadow | cut -d: -f2)"   pass="$(grep '^root:' /etc/shadow | cut -d: -f2)"
99   if [[ -n ${pass} ]]   # or fallback to a default password
100   then   [[ -z ${pass} ]] && pass="$1$oc/rCMuc$ZodLQSj6N5zYIJtOBg.RT/"
101   echo "password --md5 $(cat /etc/shadow | grep root | cut -d: -f2)"  >> ${grubconf}   echo "password --md5 ${pass}"  >> ${grubconf}
  fi  
102   echo  >> ${grubconf}   echo  >> ${grubconf}
103   echo "# normal boot" >> ${grubconf}   echo "# normal boot" >> ${grubconf}
104   echo "title ${KERNEL_DESCRIPTION}" >> ${grubconf}   echo "title ${KERNEL_DESCRIPTION}" >> ${grubconf}

Legend:
Removed from v.2517  
changed lines
  Added in v.2518