I’m using the wlan0 connection (in hotspot mode) and some other device as internet gateway. In order for this to work I have to do route add default gw 192.168.42.20 (the ip of the gateway device)
This works perfectly but my application requires that this is made automatically while booting. So, my question is: How do I make this persistent over reboot?