gluon-core: update lib/gluon/upgrade/150-poe-passthrough for naming within lede

This commit is contained in:
kb-light 2017-07-06 22:03:40 +02:00
parent 24ed871242
commit d51f2098a3

View File

@ -6,8 +6,8 @@ local site = require 'gluon.site_config'
if (not sysconfig.gluon_version) and site.poe_passthrough then
local uci = require('simple-uci').cursor()
if uci:get('system', 'gpio_switch_poe_passthrough') then
uci:set('system', 'gpio_switch_poe_passthrough', 'value', true)
if uci:get('system', 'poe_passthrough') then
uci:set('system', 'poe_passthrough', 'value', true)
uci:save('system')
end
end