base-files: generate /etc/config/wireless, if it doesn't exist
authorMathias Kresin <dev@kresin.me>
Mon, 17 Oct 2016 13:59:12 +0000 (15:59 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Nov 2016 10:08:01 +0000 (11:08 +0100)
commitba3540db6223a0107fd78decafea702a0537af7a
treeb44892f25e310a54a0fe14cdf47f2da68c052294
parentf78405f5009197b76804b65aefb2f45acada1787
base-files: generate /etc/config/wireless, if it doesn't exist

This patch adds a check in "wifi detect" to test if the wireless
configuration file does exist. If it doesn't exist, an empty
/etc/config/wireless file will be created.

This is necessary because uci doesn't create new files,
instead the tool just exits with "uci: Entry not found".

Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
package/base-files/files/sbin/wifi