20 |
done |
done |
21 |
} |
} |
22 |
|
|
23 |
|
add_conf_prot_ignore() |
24 |
|
{ |
25 |
|
local i |
26 |
|
|
27 |
|
for i in $@ |
28 |
|
do |
29 |
|
export CONFIG_PROTECT_IGNORE="${CONFIG_PROTECT_IGNORE} ${i}" |
30 |
|
done |
31 |
|
} |
32 |
|
|
33 |
# updates /boot/grub/grub.conf with given params |
# updates /boot/grub/grub.conf with given params |
34 |
# example: alx_grub_update kernel-image-name description |
# example: alx_grub_update kernel-image-name description |
35 |
alx_grub_update() |
alx_grub_update() |
84 |
# using roots current password |
# using roots current password |
85 |
echo "password --md5 $(cat /etc/shadow | grep root | cut -d: -f2)" >> ${grubconf} |
echo "password --md5 $(cat /etc/shadow | grep root | cut -d: -f2)" >> ${grubconf} |
86 |
echo >> ${grubconf} |
echo >> ${grubconf} |
87 |
acho "# normal boot" >> ${grubconf} |
echo "# normal boot" >> ${grubconf} |
88 |
echo "title ${KERNEL_DESCRIPTION}" >> ${grubconf} |
echo "title ${KERNEL_DESCRIPTION}" >> ${grubconf} |
89 |
echo "root ${grubroot}" >> ${grubconf} |
echo "root ${grubroot}" >> ${grubconf} |
90 |
echo "kernel ${grubroot}/boot/${KERNEL_IMAGE} ${rootfs} quiet" >> ${grubconf} |
echo "kernel ${grubroot}/boot/${KERNEL_IMAGE} ${rootfs} quiet" >> ${grubconf} |