forked from freifunk-gluon/community-packages
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ffac-eol-ssid: fix name of eol-ssid uci subsystem
Before thie change, the eol-ssid uci subsystem had to be created manually and the uci settings did not show up for this package.
- Loading branch information
Showing
5 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
config eol-ssid 'settings' | ||
option enabled '1' |
11 changes: 11 additions & 0 deletions
11
ffac-eol-ssid/luasrc/lib/gluon/upgrade/500-eol-ssid-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/lua | ||
|
||
local uci = require('simple-uci').cursor() | ||
|
||
-- migrate older versions | ||
if uci:get('eol-wifi', 'ssid') then | ||
local deprecated_ssid_enabled = not uci:get_bool('eol-wifi', 'ssid', 'disabled') | ||
uci:set('eol-ssid', 'settings', 'enabled', deprecated_ssid_enabled) | ||
uci:delete('eol-wifi', 'ssid') | ||
uci:save('eol-wifi') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters