gluon/package/gluon-core/luasrc/usr
David Bauer ff9f295f7d gluon-core: util: check if file exists prior to reading
The file_contains_line helper function was not testing whether a file
exists or not prior attempting to read from it.

Add this check to circumvent errors on the private WiFi config in
case the hwflags file is missing.

Reported-by: Tom Herbers <freifunk@tomherbers.de>
Tested-by: Tom Herbers <freifunk@tomherbers.de>
Signed-off-by: David Bauer <mail@david-bauer.net>
2021-07-01 03:14:08 +02:00
..
bin gluon-core: add gluon-switch-domain utility 2020-07-02 22:35:05 +02:00
lib/lua/gluon gluon-core: util: check if file exists prior to reading 2021-07-01 03:14:08 +02:00