Addons for HyperWRT 2.0b4 (hosts file, /tmp/etc/passwd)

Discussion in 'HyperWRT Firmware' started by dngrtenr, Jan 16, 2005.

  1. dngrtenr

    dngrtenr Network Guru Member

    I have modified the HyperWRT 2.0b4 source to include two things:

    1) Support for a hosts file. The reason for this is that my ISP ( blocks outbound connections on port 25, and I bring my laptop home from work a lot. I wanted a solution where I wouldn't have to reconfigure my email client every time I brought it home. The solution (for me) is to serve the SMTP server's address in place of my work SMTP server's name. If you want to use it in this way, you will also need to make sure your router's IP address is listed as the first static dns server in the DHCP settings.

    To solve this, I've added a non-volatile value (hosts_file) to the system, a button on the Management.asp page to edit it. I've also changed the way that dnsmasq is started, to remove the -h flag from the call so that dnsmasq will serve names from the hosts file.

    2) Creation of /tmp/etc/passwd and /tmp/etc/group. This will create an entry for "root" in these files. The password for root will be the same password as the login password for the web-based management of the router. This change was primarily made to support the use of the dropbear ssh daemon which I have compiled for the WRT54g. Information on that project of mine is here:

    To add this, I added the files mkfiles.c and mkfiles.h (from an old sveasoft distribution) which create these files.

    The changes I have made against HyperWRT 2.0b4 are available either as a diff file or as a zip file containing the changes.

    I hope that Avenger will add these to the next release! Please express your support for them. Additionally, if there is demand for including the Dropbear SSH daemon as a part of the HyperWRT distribution, express your support for that. I'll be happy to work with Avenger on it.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice