I reset my WIFI router every night around 02:00.
When it returns to operation, occasionally, OSMC (RPi3) does not reacquire its wifi connection.
To solve this I now force the wifi to restart by this cron job:
sudo ifdown wlan0; sleep 10; sudo ifup wlan0
However, after that the
/etc/resolv.conf file becomes empty causing all matter of other problems.
Please either enlighten me how to “reset” the
/etc/resolv.conf without rebooting or suggest a better solution to restart the wifi connection.