#!/bin/bash

if [ -z "$1" ]; then
	echo "usage: $0 <nodename>"
	exit 1
fi

declare answer

echo "About to override fencing for $1."
echo "Improper use of this command can cause severe file system damage."
echo
read -p "Continue [NO/absolutely]? " answer

if [ "$answer" != "absolutely" ]; then
	echo "Aborted."
	exit 1
fi

while ! [ -e /var/run/cluster/fenced_override ]; do
	sleep 1
done

echo $1>/var/run/cluster/fenced_override
echo Done

#!/bin/bash
#
# Dummy fence_ack_manual which uses the fenced manual override
# socket to communicate.
#

if [ "$1" = "-n" ]; then
	shift
fi

if [ -z "$1" ]; then
	echo "usage:"
        echo " 	$0 <nodename>"
        echo " 	$0 -n <nodename>"
	echo 
	echo "The -n flag exists to preserve compatibility with previous "
	echo "releases of $0, and is no longer required."
	exit 1
fi

declare answer

echo "About to override fencing for $1."
echo "Improper use of this command can cause severe file system damage."
echo
read -p "Continue [NO/absolutely]? " answer

if [ "$answer" != "absolutely" ]; then
	echo "Aborted."
	exit 1
fi

while ! [ -e /var/run/cluster/fenced_override ]; do
	sleep 1
done

echo $1>/var/run/cluster/fenced_override
echo Done

Make manual fencing's command line parser backward compatible; per dct
Make manual fencing's command line parser backward compatible; per dct
