PDA

Bekijk de volledige versie : configuration files - where?



ajdalholm
02-06-2009, 08:47
Hi, I recently switched from Openwrt to DD-WRT to oleg firmware...
I know little about linux (only via my router), but I gather, that when I in the web page configure a MAC Access Control List granting wireless access - this info is written in aconfigurationfile some where and a specific services uses this file for input.
Where do I go to locate this file and what is the service called.
I like to use commandline interfaces and would love to simply echo the info directly into the config file and then restart the specific services acting on this config file...

So If anybody can direct me to a quick overview over configuration files and corresponding services - it would be greatly appreciated.

al37919
02-06-2009, 09:04
add to /usr/local/etc/ethers
dhcp server in Oleg's firmware is dnsmasq

ajdalholm
02-06-2009, 19:25
I don't have a etc folder under /usr/local/

al37919
02-06-2009, 20:27
sure, you've to create it

ajdalholm
03-06-2009, 10:34
Okay, I gather ethers is the configuration file then?
I just thought that when I entered something in the web interface, it was actaully being writte to that configuration file - but I gather it doesn't then. How are the configuration entered in the web interface then actually being processed?

Thanks in advance

al37919
03-06-2009, 19:13
/usr/local/etc/ethers is intended for manual addition of macs. Its content is added to /etc/ethers which is generated from web settings (probably)

ajdalholm
04-06-2009, 08:55
Well I guess I now have found what I was looking for, just not the way I thought it worked.

It seems that these two commands does the trick for me:
nvram set wl0_macmode=allow
nvram set wl0_maclist="00:11:22:33:44:55 66:77:88:99:00:11"

I just seemed more intuitive to me to locate this information in some kind of configuration file somewhere instead of writing it to nvram.