On 16/09/14 13:05, Chris Green wrote:
I have a little Solwise 3G router on my boat. I have just discovered it runs Linux and I can telnet into it. Even better it runs dnsmasq so, if I can configure it appropriately then I can get it to provide local DNS.
However I can't work out where it configures itself from at boot time. If I edit /etc/hosts for example then, if I reboot, my changes are lost.
... oh, it as busybox for most of the commands.
Does anyone have any idea how it starts up and configures itself?
You may get a clue if you have a look at the output of mount.
A lot of embedded stuff has trick where a "master" root volume is mounted read only and then a tmpfs style rw volume is mounted over the top. Using tools like unionFS
So if you make changes on the fly they only live in ram, you need to remount the "master" root image RW and write the changes into that, which is probably what the web configuration tools do.