SES-Button on an older wrt54g

Discussion in 'Tomato Firmware' started by rafael, Jan 14, 2010.

  1. rafael

    rafael Addicted to LI Member


    I've installed Tomato 1.27 on my Linksys WRT54G v2 router. If I go now to the menu Administration -> Buttons / LED it says me that this menu is deactivated or not supported. In fact this is correct, since the v2 router has no SES-button. The point is that I added a button to my router connecting GND with GPIO 4 which is used by the SES-button in newer versions. So my v2 router has actually a SES-button. I tryed my button with the DD-WRT and it acts like the SES-button should do.

    Is there a way to reactivate this menu?

    Or are there any other ideas how i can use my button to switch on/off the wlan?

  2. karogyoker

    karogyoker Addicted to LI Member

    download source, search for the code what deactivates the menu if its a v2, recompile, re-flash router with the new firmware

    but in details i dont know how to do that, so i told you nothing

    edit: or maybe enough if you do some javascript hack, check the source maybe you find a piece of code where it disables the form
  3. rafael

    rafael Addicted to LI Member

    I found a way get the Buttons / LED menu on my WRT54Gv2.
    There is a variable in the nvram called t_features. This variable contains a hex value representing four bits. Every bit stands for a feature. On my WRT54Gv2 t_features was set to 0x0 (hex) or 0b0000 (binary) meaning none of the four feature is supported. The four bits stands for 'ses', 'brau', 'aoss' and 'wham'. 'ses' ist the least significant bit and 'wham' most significant bit. The javascript is reading this value and deciding which menu will be shown. The only thing I needed to do was to change this value.
    0x1 (0b0001) means the router has a ses-button 0x9 (0b1001) means the router has a ses-button and the led lighting the button which is usual on a normal WRT54Gv3 or higher. Since I only added the button I took 0x1.
    To change the value I took the command "nvram set t_features=0x1". The value is set to default after areboot which means we have to change the value again. Therefor I put the command in a startup script. Simply paste the command "nvram set t_features=0x1" in the tomato menu Administration > Scripts where it says Init. That's it.
  4. Beast

    Beast Network Guru Member

    Just a thought, (I could be wrong) but if you added nvram commit after nvram set. Would this not make it survive a reboot. Then you would not need the script entery. And only would have to redo it after a reset with nvram clean.
  5. rafael

    rafael Addicted to LI Member

    I didn't test your idea yet, but I think this could be a good idea to reduce writecycles on flash-memory. But I reboot my router maybe once per month, so I think writecycles won't be a problem.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice