Jump to content

auto connect to wifi


imitm
 Share

Recommended Posts

Hello!

I have issue - I need to connect to wpa2 secured network automatically on nano boot,

I would like to use bash script for this task, so I could extend script to some additional features.

Could anyone give a hint to solve these tasks:

1 - which config file to edit (or better if can I use my own config file where I will put SSID, password and other necessary parameters)

2 - what command I need to run to connect to configured network)

3 - how to check if connection succeeded ( script need to check if IP was obtained via dhclient)

Many thanks!

(P.S. just in case if anyone is interested what I'm trying to do: I have a big password list for some particular wifi network and I need to find out which one is correct)

King regards,

imitm

Link to comment
Share on other sites

Many thanks for a prompt answer Whistle Master!

I eventually discovered some kind of workaround - editing /etc/config/wireless via shell script, and issuing wifi to apply changes and then ping or similar tool to test connectivity.

Haven't developed script yet, but manual test gave desired results.

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...