Commit b278a1a4 authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Ruben Barkow

Fix config section type

All places in the gluon_ssid_changer source code use the type "settings"
for the main config section of the package. But the upgrade script switches
this to "main" for no obvious reason.
parent 413b4910
......@@ -7,7 +7,7 @@ local uci = require('simple-uci').cursor()
if site.ssid_changer == nil then
-- print('ssid_changer not defined in site.conf')
elseif not uci:get('ssid-changer', 'settings', 'enabled') then
uci:section('ssid-changer', 'main', 'settings', {
uci:section('ssid-changer', 'settings', 'settings', {
enabled = '1',
switch_timeframe = site.ssid_changer.switch_timeframe() or '30',
first = site.ssid_changer.first() or '5',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment