Router is a SMCrouter type SMC7004BVR.

But then the script can only be used with this router. I'm more looking for a general script.