kernel: update to 2.6.30.4.
Added an INSTALL script that updates GRUB's menu.lst file at post-installation time... simple but will be improved later. --HG-- extra : convert_revision : 0ce38f532a8e8d2bfdef21dcd35fe0562732ad09
This commit is contained in:
27
templates/kernel/INSTALL
Normal file
27
templates/kernel/INSTALL
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# This script adds an entry to grub's menu.lst file.
|
||||
#
|
||||
menulst=boot/grub/menu.lst
|
||||
|
||||
case "${ACTION}" in
|
||||
pre)
|
||||
;;
|
||||
post)
|
||||
if [ ! -f $menulst ]; then
|
||||
echo "default 0" >> $menulst
|
||||
echo "timeout 5" >> $menulst
|
||||
fi
|
||||
|
||||
if grep -q "^title XBPS ${PKGNAME}-${VERSION}$" $menulst; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Updating GRUB's menu.lst for kernel-${VERSION}..."
|
||||
( \
|
||||
echo; \
|
||||
echo "title XBPS ${PKGNAME}-${VERSION}"; \
|
||||
echo "kernel /boot/vmlinuz-${VERSION} ro quiet root=LABEL=root"; \
|
||||
echo "initrd /boot/initrd.img-${VERSION}"; \
|
||||
) >> $menulst
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user