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.
There's an /etc_ro directory but nothing really much in there gives a clue. There's even an /etc_ro/rcS file which is obviously executed fairly early on in the boot sequence but it's not early enough to indicate where the basic configuration lives.
The motd file says:-
------------------------------------------------------ Welcome to HAME Technology Co.,Ltd =System Architecture Department= ------------------------------------------------------
... oh, it as busybox for most of the commands.
Does anyone have any idea how it starts up and configures itself?
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.
On Sat, Sep 20, 2014 at 08:00:51PM +0100, Wayne Stallwood wrote:
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.
Thanks for the ideas, I'll take a look at the mounts etc.
It'll have to wait until I go back to the boat though because it's turned off when I'm not there as its only function really is to provide WiFi on the boat.