Draft of an autoupdater for Freifunk Berlin. Deprecated in favour of rewrite. https://github.com/freifunk-berlin/falter-packages/tree/master/packages/falter-berlin-autoupdate
The uci-script fails regularily at setting the date of the last upgrade. That is needed, to figure out new versions of the link-list.
We ping 8.8.8.8, to check if there is a way to the internet. If so, we assume, that the time of the system clock was set right and we set the date of last_upgrade to the current date.
Currently, that mechanism does not work anymore. Probably the ping fails, because the internet conection is not established, at that point of boot-process.
The uci-script fails regularily at setting the date of the last upgrade. That is needed, to figure out new versions of the link-list.
We ping 8.8.8.8, to check if there is a way to the internet. If so, we assume, that the time of the system clock was set right and we set the date of last_upgrade to the current date.
Currently, that mechanism does not work anymore. Probably the ping fails, because the internet conection is not established, at that point of boot-process.