#!/bin/sh
#
#  $Id: //depot/prod/spinfs/rel2.5.4x/mgmt/src/scripts/reboot#1 $
#
#  script to redirect callers of the reboot command
#
#
echo "spinserver reboot process started ..."

if [ ! "$1" ]; then
	echo -n "enter ssid: "
	read ssid
else
	ssid="$1"
fi

if [ ! "$2" ]; then
	echo -n "enter reason for rebooting: "
	read reason
else
	reason="$2"
fi

spinsh -c spinservers reboot -ssid \""$ssid"\" -rebootreason \""$reason"\"

