WiFi Auto Reconnect

I have two rpi based systems. One is the rpi2 with HiFiberry Amp+ running Volumio 1.55. The other is a rpiB+ with a HiFiberry DAC running Raspian.

Whenever I must reboot the WiFi router the Raspbian rpi auto reconnect to the wifi network. However, with the Volumio rpi2 I must reboot the rpi2 in order to reconnect to the WiFi network were the rpi running Raspian does it automatically with out rebooingt the rpi.

Is there a setting thru the web interface or command line for setting up Volumio to auto reconnect on a WiFi router recboot - reconnect ?

TIA.

I found this script on the web and wondered if it would work or cause other issues as Volumio is customized OS install ?!?

#!/bin/bash

wlan=/sbin/ifconfig wlan0 | grep inet\ addr | wc -l
if [ $wlan -eq 0 ]; then
/sbin/ifdown wlan0 && /sbin/ifup wlan0
else
echo interface is up
fi

I’ve setup this script to run as a cronjob every 5 minutes to make sure the WiFi stays up.

What do other folks use as this would be a common desire to have this function?

My router turn the Wifi down at night (no signal) and it’s running for months im not having any problem.
So either this is a limited setup issue or my wifi doesn’t turn down… Will check that later.