I have a headless system that is essentially useless without wifi, but with the default script it rarely connects without manually re-running ('no lease, failing'), which would require a reboot.
How can i make the wifi.sh script indefinitely attempt to connect to wifi, or at least a large number of tries (eg 99) before giving up?