POSTIN
/bin/sh
init=$(ps --no-headers -o '%c' 1)
test x"$init" != xinitng || /sbin/ngc --quiet -c || :
Triggers
mkinitrd
/bin/sh
if [ $1 = 1 -a -f /boot/grub/grub.conf -a -x /sbin/grubby ]; then
grep -q initng /boot/grub/grub.conf
if [ $? -ne 0 ]; then
cp /boot/grub/grub.conf /boot/grub/grub.conf.bak
defaultkpath=`grubby --default-kernel`
if test -n $defaultkpath && test -f "/boot/vmlinuz-"`uname -r`
then
defaultkpath="/boot/vmlinuz-"`uname -r`
fi
defaultinitrd=`grubby --info=$defaultkpath | grep initrd`
grubby --add-kernel=$defaultkpath --copy-default --args="init=/sbin/initng" --title="initng boot" --$defaultinitrd
fi
fi