norings
Posts: 4
Joined: Wed Aug 21, 2013 6:45 pm

Check out wifi connection bashscript

Thu Jul 03, 2014 5:25 pm

HI I am totaly new to writing script and I need help with this, I am trying to write a script that pings a IP adress and if there is no answer pi should start Midori (because sometimes my wifi connection goes down and Midori starts an automatic loginsequnze to my wifi again). My system is Raspbian wheezy.
Sorry for my spelling but english is not my usual language, hope you understand anyway.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Check out wifi connection bashscript

Thu Jul 03, 2014 11:03 pm

Not quite the same thing, but this also talks about pinging specific hosts http://www.raspberrypi.org/forums/viewt ... 32&t=77921

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Check out wifi connection bashscript

Thu Jul 03, 2014 11:05 pm

Although trying to track down why "sometimes my wifi connection goes down" may be a better long-term goal? Are you using a powered USB hub?

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Check out wifi connection bashscript

Fri Jul 04, 2014 1:17 am

You could take a look at this https://raw.githubusercontent.com/dweeb ... WiFi_Check

This script will bring up the wifi if the connection is lost.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

norings
Posts: 4
Joined: Wed Aug 21, 2013 6:45 pm

Re: Check out wifi connection bashscript

Fri Jul 04, 2014 6:56 am

MrEngman wrote:You could take a look at this https://raw.githubusercontent.com/dweeb ... WiFi_Check

This script will bring up the wifi if the connection is lost.



MrEngman
My problem is that I am on a public wifi that sometimes throws me out so I have to login again thats why I have to start midori to make a automatic login so I am not losing my wifi I am losing my access so I have to login on my acount again.
Sorry for my spelling but english is not my usual language, hope you understand anyway.

Return to “General discussion”