3 [ -f /etc
/conf.d
/kexec
] && .
/etc
/conf.d
/kexec
10 stat_busy
"Enabling kexec on reboot"
16 if [ "$RUNLEVEL" = "6" -o "$1" = "load" ]; then
17 stat_busy
"Loading kexec kernel"
18 [ -f "$KPATH" ] || stat_fail
19 [ -f "$INITRD" ] && _INITRD
="--initrd=$INITRD"
20 /sbin
/kexec
-l $KPATH --append="root=$ROOTPART $KPARAM" $_INITRD > /dev
/null
2>&1
22 stat_busy
"Disabling kexec on reboot"
24 if [ $?
-eq 0 ] ; then
33 stat_busy
"Unloading kexec kernel"
35 if [ $?
-eq 0 ] ; then
43 echo "usage: $0 {start|stop|load|unload}"