Hello,
I’ve been having problems with my network connection, thank you Verizon … ;-(
Anyways, sometimes my raspberry pi gets hung on a network reset. Did a little searching and wondered if this could be included in the Volumio code base. (or if I should just add it myself)
Anyways, from this link: weworkweplay.com/play/rebooting- … tion-wifi/
store this script in /usr/local/bin/checkwifi.sh
ping -c4 192.168.1.1 > /dev/null
if [ $? != 0 ]
then
echo "No network connection, restarting wlan0"
/sbin/ifdown 'wlan0'
sleep 5
/sbin/ifup --force 'wlan0'
fi
make sure permissions are correct, with:
sudo chmod 775 /usr/local/bin/checkwifi.sh
and to stuff the above in cron like:
crontab -e
*/5 * * * * /usr/bin/sudo -H /usr/local/bin/checkwifi.sh >> /dev/null 2>&1