#! /bin/bash
# this script takes arguments as $reason, $address and $prefix
# and adda or deletes the address based on reason

if [ x$reason = xSET ]; then
	/sbin/ifconfig $interface add $address/$prefix

	echo Address $address/$prefix has been configured
	echo Use ./release to release the address
fi

if [ x$reason = xRELEASE ]; then
	/sbin/ifconfig $interface del $address/$prefix
	echo Address $address/$prefix is released
fi
exit
