#!/bin/sh
case "$1" in
  start)
	if [ -f "/data/mac.txt" ];then
	ifconfig eth0 down
	ifconfig eth0 hw ether $(cat /data/mac.txt)
	ifconfig eth0 up
	fi
	if [ -f "/data/wifimac.txt" ];then
	ifconfig wlan0 down
	ifconfig wlan0 hw ether $(cat /data/wifimac.txt)
	ifconfig wlan0 up
	fi	
    ;;
  *)
    ;;
esac
