#!/bin/sh

# Copyright (C) 2006 OpenWrt.org
set -x
case "$ACTION" in
	remove)
        echo ${PRODUCT} | grep -q 148f/307
		if [ $? == "0" ]; then
            logger "======== REMOVING RT3070STA ========"
			ifdown wan
			logger "======== RT2870STA REMOVED ========"
		fi
		;;
	add)
        echo ${PRODUCT} | grep -q 148f/307
		if [ $? == "0" ]; then
            logger "======== ADDING rt3070sta =========="
            ifup wan
			logger "======= RT2870STA ADDED ===========" 
        fi
		;;
esac
set +x
