What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

WOL Tab interface?

rung

Senior Member
I usually use a script to wake up my PC, but just now l needed to use the WOL tab in the UI and found it doesn't seem to work for me anymore. I investigated and found that my script uses the interface option "-i br0" when calling ether-wake. When I try to use this command without this parameter, it also doesn't wake my PC. Is there any chance to request an option to select the interface on this page in the future? Or is my issue somewhere else?

Thanks,
Rung
 
I'm pretty sure the command invoked by the WOL tab always contains the -i br0 parameter. What makes you think otherwise?
 
It was a guess since the UI didn't work at all and when I tried from the command line, the command works fine unless I removed that parameter. I also don't use the "-b" in my script. Could that be maybe why the UI isn't working for me?
 
The router uses ether-wake -i br0 -b followed by the MAC address. So it only works on the main LAN (br0), not isolated guest networks or other VLANs.
 
Last edited:
Okay - I guessed the wrong parameter. It is indeed the "-b" option that prevents my PC from waking. So, I guess the question changes to, it is possible to modify the tool tab with a checkbox to disable the broadcast "-b" option? I'd be glad to do it myself if someone could provide some pointers to the page I would need to overwrite (bound mount?) and hints on how to signal the change in the executable command based on a checkbox.
 
Have a look at /www/Main_WOL_Content.asp
Perfect! Works great.

For anyone else that wants to do this:
  1. Make directory
    Code:
    /jffs/addons/WOL/
  2. Copy /www/Main_WOL_Content.asp to that directory
  3. Edit the copied file (I just deleted the "-b" parameter. Maybe someone will skills can enhance it with a checkbox on/off and even allow guest network interfaces someday?)
  4. Created a script called bind.sh:
    Bash:
    #!/bin/sh
    mount --bind /jffs/addons/WOL/Main_WOL_Content.asp /www/Main_WOL_Content.asp
  5. Added the following line to the services-start script:
    Code:
    /jffs/addons/WOL/bind.sh >/dev/null 2>&1 & # fix WOL page

That's it.

Thanks ColinTaylor!

Rung
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top