View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#118
Originally Posted by 3clch4pawlakov View Post
I looked into it and removed that "if" part of code leaving only:
Code:
        route add default wlan0; 
       route add default gw 192.168.1.1 wlan0
Does gw mean gateway? Because i changed it to match mine.
Yep, exactly.
Once again sorry for not mentioning.

I found that out on my own the hard way years ago
Somehow the routing table did not get updated correctly when connecting to that specific AP (router).

You need to know the ESSID and change in my script and also need to know/guess the IP of the gateway (normally x.x.x.1 or x.x.x.254). I hope there is nothing left I can forget to mention
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post: