#!/bin/sh

#
# Sets the mac to interface from CPU registers
#

NAME="setmac"

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

exit $?
