Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > fe7286727197282e22e7ea674ace4a59 > scriptlet

ipmiutil-1.6.4-1mdk.x86_64.rpm

POSTIN

/bin/sh
# after install
tmpsel=/tmp/pefcfg.tmp

# Assumes that the kernel patches are already in place.

# Make sure that the panic timeout is set to some reasonable value
PANIC_MODE=5
PANIC_FILE=/proc/sys/kernel/panic
PANIC_VALUE=`cat $PANIC_FILE`

# assume that if $pval is set, that someone has already configured lilo.conf
if [ "$PANIC_VALUE" = "0" ]
then
   # Panic timeout is not set, set timeout to $pnew
   echo "$PANIC_MODE" > $PANIC_FILE
   echo "kernel.panic=$PANIC_MODE" >> /etc/sysctl.conf
fi

# Set up the PEF entry to send the BMC LAN Alert for this event.
/usr/sbin/pefconfig >$tmpsel 2>&1

# --- Dont need to load a module, bmc_panic is now linked into the kernel.