1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How does the startup work?

Discussion in 'DD-WRT Firmware' started by hohndel, Sep 29, 2005.

  1. hohndel

    hohndel Network Guru Member

    There's one thing that is puzzling me. How exactly does the boot / startup sequence work? I'm reasonably experienced with Linux (grin :grin: ) - but not with the embedded kind...

    Where are the scripts / programs that take the data from the nvram and set up the system based on those? I grep'ed my way around, I read some of the OpenWRT documentation, but that doesn't seem to apply (ifup for example doesn't work and complains about missing /etc/network/interfaces directory)...

    The reason I'm asking is simple. I'm trying a somewhat more elaborate setup with three WRTs. One is an AP, two are clients (have that working just fine - just with WEP right now, but will try WPA given the report that that works now with 280905...). But I want the AP to set up an OpenVPN tunnel to a box on the other side of the WAN port and connect that tunnel to the LAN ports of the AP (which are split from the WLAN port).

    I have OpenVPN working (mostly - still some IP forwarding problems I am struggling with... darn iptables), I have split the WLAN/LAN bridge and set up new wifi_xxx variables for iname, ip, proto, etc. But somehow the WLAN side is no longer setup correctly (using wl status I see that it has the right SSID but the wrong chanel an is in AdHoc mode).

    When trying to debug the wifi_config script that I found here, I realized that I didn't quite understand how the startup worked, hence this question :)


    PS: once I have this working, I hope I can extend the wiki to help others who are trying to fiddle with this beyond what the gui provides...
  2. hohndel

    hohndel Network Guru Member


    Is this a stupid question, or is it too hard to explain? Seriously...? 8O

    Alternatively, is there an anonymous CVS where I could get the latest sources and see for myself? The sources in the download area seem a bit dated...


  3. habskilla

    habskilla Network Guru Member

  4. hohndel

    hohndel Network Guru Member

    That explains the "no cvs" part - I fully understand BrainSlayer there. It's sad that I can't have access to all the source, but that's ok. Obviously, he has to release the GPL sources somehow (and the latest beta sources don't seem to be up anywhere I was able to find them), but that's not a big problem as far as I'm concerned...

    Honestly, I'm much more interested in the answer to the first question - which no one has commented on. I'll download the last sources BrainSlayer has put on the site and see if I can find out from them.

    In the meantime, anyone who can point me in the right direction? :)

  5. habskilla

    habskilla Network Guru Member

    way over my head :jester:
  6. hohndel

    hohndel Network Guru Member


    Started to read the sources. This is going to be fun... tons of assumptions about LAN and WLAN being bridged are made in router/rc which is what is run at startup.

    BrainSlayer, if I want to mess with this, what's the easiest way to test changes, given that the whole build tree isn't available? I still haven't figured out how I could replace the rc binary and reboot the router :)

  7. BrainSlayer

    BrainSlayer Network Guru Member

    no i'm releasing all sources you'll get all of it, i just changed the license. private and non comercial users can still everything with it excepting doing money. you still can download the latest v23 source from my site and you'll see that everything is inside. no restrictions

Share This Page