
mkdir -p /var/lib/groovix/gx-wifi

groovix-get-parameter GX_TYPES | grep gx-wifi
GXWIFI=$?
if [[ $GXWIFI -eq 0 &&  ! -e /var/lib/groovix/wifi/wpasupplicant-enable.timestamp ]] ; then
        # have to do this first real bootup 
        # ACTIVATE WIFI IN SYSTEMD/etc.
        /usr/bin/groovix-wifi-wpasupplicant-enable
	date >> /var/lib/groovix/wifi/wpasupplicant-enable.timestamp
else
	# with usb wifi adapters there might be a race condition and wlan0 doesn't exist when systemd tries to bring it up, so start it again
	systemctl start wpa_supplicant@wlan0

fi

