Created
August 16, 2019 11:05
-
-
Save MatthewFlamm/79f021ff7e4b123d4e22e6ade911b5b8 to your computer and use it in GitHub Desktop.
Restart pi wlan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
ping -c 1 192.168.0.1 > /dev/null 2>&1 | |
if [ $? -ne 0 ] | |
then | |
date | |
ifconfig wlan0 | |
sudo ip link set wlan0 down | |
sudo ip link set wlan0 up | |
ifconfig wlan0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment