#!/bin/sh

#
# Sets the mac to interface from CPU registers
#

NAME="setmac"

case "$1" in
	start)
		echo -n "Starting ${NAME} ... "
		mac0=$(cat /opt/extparam/mac_address_0)
		/opt/gira/bin/set-mac-to-if eth0 "$mac0"
	;;
	stop)
		echo -n "Stopping ${NAME} ... "
	;;
	restart|reload)
		echo "Restarting ${NAME} is not implemented."
	;;
	*)
		echo $"Usage: $0 {start|stop|restart}"
		exit 1
esac

exit $?
