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!

Help with Script in Asus rt n66u

crisidoani

New Around Here
Hello!! it´s the first time that write here, and i´m sorry for my english :)

I want change my actual neutral router Linksys wrt54gl for the asus rt n66u

I have configured all like the old one but i have one thing that i don´t know how do it

I have one script that execute every 15 minutes to check if any dispositive is conected to the wireless router and if there isn´t anything switch off the wifi

I want do the same in Asus but i don´t know how modify this script, in asus router have to wifi 2,4 and 5 ..... i don´t know, someone can help me??

Thank you




#!/bin/sh
wlclients=`wl assoclist | wc -l`

if [ $wlclients -lt 1 ]
then
/sbin/radio off
fi
 
Specify the interface to select which band you are querying:

Code:
wl -i eth1 assoclist
wl -i eth2 assoclist

However, stock firmware does not provide any way to have a script automatically run at boot time, you will need to install a third party firmware to be able to automatically have the cron job set at boot time.
 
Specifically what doesn't work? The two commands I gave you definitely do work on the RT-N66U.
 
Yes, I'm sorry, I have replaced wl by assoclist by wl -i eth1 assoclist in the
script but I don't get that Wifi 2,4 switch off

I'm trying with tomato firmware to execute the script every 15 minutes
 
Make sure that /sbin/radio does exist. I don't know if it's in Tomato (or even if it works - try manually running it to confirm).
 
The script that I wrote is working now I Linksys wrt54gl, with tomato firmware,
How can test manually? By telnet? I'm sorry, I'm not a expert


Thank you for all
 

Similar 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!

Members online

Back
Top