1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Button Script: Toggle WAN port on/off ?

Discussion in 'Tomato Firmware' started by Intuit, Oct 28, 2011.

  1. Intuit

    Intuit Networkin' Nut Member


    I wish to set a custom script for my router's button,
    that toggles the WAN port on/off. (I also want to
    see that associated LED toggle on/off.)

    While I've been able to peruse the Unix filesystem, find "dhcp-release" and "dhcp-renew", I haven't identified the necessary commands for turning my WAN port on/off. Of the following interfaces obtained via "sysinfo" utility: "br0 eth0 eth1 lo vlan0 vlan1" which one represents the WAN ethernet port ? eth0 ??

    Not new to scripting, just new to sh scripting under Unix & Linux.
    New to 3rd-Party router firmwares and just installed Tomato a few weeks ago.

    ASUS WL-520GU
    root@router:/# nvram get os_version
    1.28.9054 MIPSR1-beta K26 USB Lite

    Your time is appreciated.

    Note to self: Integrate USB over IP. OEM software employs Eltima version.

Share This Page