StoneGiraffe
Occasional Visitor
Disclaimer - I'm not even a linux newbie, I'm a straight up idiot.
I'm trying to write a script so I can more easily add mac filters via ssh. Basically I'm trying to read the old values out, add a new filter, then set.
So far I'm here and it's clearly not working.
nvram set wl0_maclist=\"`nvram get wl0_maclist` $1\"
nvram set wl0_maclist_x=\"`nvram get wl0_maclist_x`\<$1\"
nvram set wl1_maclist=\"`nvram get wl1_maclist` $1\"
nvram set wl1_maclist_x=\"`nvram get wl1_maclist_x`\<$1\"
Also, if I screw up my nvram and I don't want to commit, how do I roll back?
(Incidentally, only reason I want to do this is that the 2.4 and 5Ghz filters are separate again - I was so happy when they were merged in a previous firmware. Good things don't last forever I guess)
I'm trying to write a script so I can more easily add mac filters via ssh. Basically I'm trying to read the old values out, add a new filter, then set.
So far I'm here and it's clearly not working.
nvram set wl0_maclist=\"`nvram get wl0_maclist` $1\"
nvram set wl0_maclist_x=\"`nvram get wl0_maclist_x`\<$1\"
nvram set wl1_maclist=\"`nvram get wl1_maclist` $1\"
nvram set wl1_maclist_x=\"`nvram get wl1_maclist_x`\<$1\"
Also, if I screw up my nvram and I don't want to commit, how do I roll back?
(Incidentally, only reason I want to do this is that the 2.4 and 5Ghz filters are separate again - I was so happy when they were merged in a previous firmware. Good things don't last forever I guess)