Skip to content
Snippets Groups Projects
Karsten Böddeker's avatar
Karsten Böddeker authored
/etc/config/autoupdater-wifi-fallback
  - just provide a config example

/lib/gluon/upgrade/510-autoupdater-wifi-fallback
  - if ther is no config, copy enable state from autoupdater
  - there is no need for setting the wireless config here
  - set a cron job to execute the wifi-fallback 10 minutes after the autoupdater

/usr/lib/lua/autoupdater-wifi-fallback/util.lua
  - improve get_available_wifi_networks()
    - use iwinfo, so there is no need to use io.poppen()
    - match the SSID to someting containing "Freifunk" (case-insensitive)
  - removed unused functions
    - get_site_macs()
    - is_in_fallback_mode()
    - neighbours()
    - interfaces()
    - get_wifi_neighbours()

/usr/lib/micron.d/autoupdater-wifi-fallback removed
  - the cron job is now prepared by /lib/gluon/upgrade/510-autoupdater-wifi-fallback

/usr/sbin/autoupdater-wifi-fallback
  - don't get min_update_secs from the config, just declare it here
  - remove the debug output
  - parse_args()
    - add new arg -b for feature use
    - add error message
  - preflight_check()
    - do not exit, just return true or false
    - do not check the fastd socket, it exists if fastd is running and does not belong to an established connection
  - connectivity_check()
    - was called check_connectivity() bevore, renamed to be similar to preflight_check()
    - do not check your wifi neighbours, they may have no connection too
    - some little code improvements
  - switch_to_falback_mode(wifiNetwork, radio)
    - we need the radio, too, to connect to the wifiNetwork
    - delete all wifi-ifaces, we will restore them later, don't worry
    - setup config for fallback wifi-iface
    - iw dev <dev> connect -w <ssid>, is not working any more, so we install wpa-suplicant-mini
    - revert the wireless directly after connecting to the AP
  - revert_to_standard_mode()
    - the config is allready restored, so just reinitialize the network
  - is_in_fallback_mode()
    - deleted
    - there is no reason to check this here
  - again no need to check the fastd socket
  - improve unreachable_since, execute os.time() only one time
  - as already mentioned, we need the corresponding radio, to connect to wifiNetwork

ffho-autoupdater-wifi-fallback-legacy: new
  - migration package to migrate from old version to the new one
  - deletes the obsolete config after an upgrade
4c711542
History
Name Last commit Last update
ffho
.gitignore