I use my droid's net on my Fatdog.
Native tool in fatdog works fine.
But I wanted to know what goes on underneth.
I searched internet found following commands...
To connect
Code: Select all
ifconfig usb0 up && dhcpcd usb0
Code: Select all
dhcpcd -x usb0
I have tested a script with the connect command, it works.
I am confused about disconnect, should I add "ifconfig usb0 down" too.
And finally I would like to make a single script which when I clicked once connects to internet, on second click disconnects.
I think, I will have to use "if....fi". But I don't know how to, and what should it search for to detect if net is on.
Thanks for any help.
- Neeraj.