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