Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > c83d9cfde23ccadc74e25bf39c131592 > scriptlet

bootchart-0.9-11.fc12.i686.rpm

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