lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Need a script to check for Valid IP address

Sun Mar 16, 2014 8:38 am

one issue with the pi is sometimes the IP address is lost with the wireless adapter, I need a simple script for every 10 minutes to check if I have a valid IP address.

If not, I would issue sudo /etc/init.d/networking restart to renew and the IP address would be reacquired.

The script would be running constantly at the background and check valid IP every 10 minutes.

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Need a script to check for Valid IP address

Sun Mar 16, 2014 9:48 am

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “General discussion”