#!/bin/bash

function rebootOptions()
{
    if [ "$1" = "--fast" ]
    then
        echo Rebooting using kexec-tools for fastboot.
        /usr/lib/cumulus/kboot
    elif [ "$1" = "--help-fastboot" ]
    then
        echo "Use --fast option for fastboot with kexec"
    else
        /usr/sbin/reboot.real "$@"
    fi
}

# script #
rebootOptions $@
