Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 8a2d57e2c48d6ed51b0adb1d8ecc3a55 > scriptlet

initng-0.6.10.2-5.fc12.i686.rpm

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