Also, I want to report a bug.
I added wifi.sh -a in /opt/bootlocal.sh and if I don't have a keyboard plugged in on boot. It does not get executed.
But if I plug in a keyboard, even after boot, the script gets executed. So let's say I boot without a keyboard, then wait 5 mins, then plug in the keyboard, I will see the message in the console that the script is executing right after I plug in the keyboard.
I don't know, seems like the USB hub gets detected when I plug in something, then the script gets executed. Didn't try with another device than the keyboard.