Script to connect/disconnect from wifi
1 Attachment(s)
Apologies if this isn't the place to put it, but I know I'd looked for this elsewhere, and hadn't found a command to do this. It'll allow you to manage connections from scripts. Only three parameters; -c iapname to connect and -d to disconnect, whereas -i iapname simply returns the id. Any network names containing spaces should be enclosed by quotes. Also, if the tablet is already connected, you need to disconnect first. On my my tablet, I've placed it at /usr/bin/wifitool.
Code:
#!/bin/sh |
Re: Script to connect/disconnect from wifi
Hmm, some AP names contain spaces. Then you need quotes; e.g. wifitool -c "Home Sweet Home"
This should be pretty useful for those who decide to use a newer kernel, not being able to use the connection panel. |
Re: Script to connect/disconnect from wifi
Code:
#!/bin/sh |
Re: Script to connect/disconnect from wifi
Look interesting. My only comment, would be to add help, with something like this:
#!/bin/sh if [ -z $1 ]; then # needs help echo "Help is available" exit fi echo "No Help" |
Re: Script to connect/disconnect from wifi
-it connect to only saved ap,,,i want an scripts for connect to no-saved ap
tanks |
All times are GMT. The time now is 07:12. |
vBulletin® Version 3.8.8