hnyman wrote:Wandy wrote:Wandy wrote:Yeah. That is helpful. Thank you so much~
I still have some problems reading the scripts. There are some many variables which are upper. Are they global? It is hard to find where they originate from. Any idea about that?
Give a clear refrence to what you talking about. Which script? Which variable?
(usually there are no global variables.)
Thank you for your reply. I am reading the /lib/wifi/*.sh scripts which I think parse the wireless configure file in /etc/config/wireless. But it is hard to catch the process.
Actually, I want to divide the option channel into two,channel1 and channel2 in /etc/config/wireless. Because the 802.11a and 802.11na work in the different frequency as 802.11b/g/ng does. If the wrong frequency is chosen. The router will be down. But the original interface just mix all the frequencies together. I just want to make a change about this. But I need the "channel1" and "channel2" parsed just the option "channel". So I need figure out the parsing process of the configure file by the shell.Then I can make some change and make channel1 and channel2 parsed smoothly. Am I understood?