YIO-Remote / remote-os

💎 Buildroot OS for YIO remote
GNU General Public License v3.0
13 stars 9 forks source link

wpa_supplicant.conf file in /boot always delays boot by 15s #37

Closed zehnm closed 4 years ago

zehnm commented 4 years ago

Expected Behavior or Design

If there's a wpa_supplicant.conf file in /boot then this configuration needs to be applied to the WiFi configuration. If the configuration hasn't changed, then the copy & WiFi restart is not required.

Current Behavior or Design

At the moment the file is processed at each boot, even if the destination configuration file is the same. This involves at least a 15 second boot delay which is in most cases not necessary.

Possible Solution

Compare the /boot/wpa_supplicant.conf file if it needs to be processed, i.e. if it is the same file as currently present in the system. Either by a diff operation or by checksum comparison.

Detailed Description and Additional Information

WiFi copy script: /opt/yio/scripts/wifi-copy-config.sh (Old location: /usr/bin/yio-remote/)