PREUN
/bin/sh
# Remove the grub/lilo entry, but only on uninstall, not on upgrade
if [ $1 -eq 0 ] && [ -x /sbin/grubby ] && [ -e /boot/grub/grub.conf ]; then
grubby --update-kernel=ALL --remove-args="init=/sbin/bootchartd"
fi
if [ -x /usr/bin/rebuild-gcj-db ]; then
/usr/bin/rebuild-gcj-db
fi
POSTIN
/bin/sh
# Add a new grub/lilo entry
if [ -x /sbin/grubby ] && [ -e /boot/grub/grub.conf ]; then
eval $( /sbin/grubby --info /boot/vmlinuz-$(uname -r) ) >& /dev/null
if [ "x$kernel" != "x" ]; then
echo /sbin/grubby --update-kernel=/boot"$kernel" --args="init=/sbin/bootchartd"
/sbin/grubby --update-kernel=/boot"$kernel" --args="init=/sbin/bootchartd"
fi
fi
if [ -x /usr/bin/rebuild-gcj-db ]; then
/usr/bin/rebuild-gcj-db
fi