Skip to content

Commit

Permalink
restart interface is require, belt and braces wifi check script
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson committed Jun 24, 2018
1 parent 2445e35 commit 90b2ef1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rc.local_jessieminimal
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
echo" My IP address is":
hostname -I

# WLAN fix on RasPi 3B+ Stretch
rm /var/run/wpa_supplicant/wlan0
ifdown wlan0
sleep 1
ifup wlan0

# Will only run if /var/log is mounted in tmpfs
if ( mount | grep "on /var/log "| grep -q "^tmpfs " )
then
Expand Down
2 changes: 2 additions & 0 deletions wifi-check
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ then
echo "wlan0 down! Attempting reconnection."
echo "fconfig wlan0 down"
ifconfig wlan0 down
ifdown wlan0
sleep 5
echo "ifconfig wlan0 up"
ifup wlan0
ifconfig wlan0 up
# else
# echo "Network connection down, but not reconnecting because eth0 is connected and configuring device."
Expand Down

0 comments on commit 90b2ef1

Please sign in to comment.