#!/bin/sh
if [ -e /firstrun ]; then
	echo 'running firstboot'
	sh /root/update-vendor-firmware
	modprobe brcmfmac
	/etc/init.d/iwd start
	echo 'wait 5 seconds'
	sleep 5
	rm -f /etc/modprobe.d/blacklist-brcmfmac.conf
	rm -f /firstrun
	iwctl station wlan0 get-networks
else
	echo 'no firstrun'
fi
