diff --git a/package/gluon-core/luasrc/lib/gluon/upgrade/150-poe-passthrough b/package/gluon-core/luasrc/lib/gluon/upgrade/150-poe-passthrough
index ab35dec0d7185c3f0f63f5d8bb52a7e7d22eb89d..ded755098dfdf2b6d7c1c8293aac19382d30551c 100755
--- a/package/gluon-core/luasrc/lib/gluon/upgrade/150-poe-passthrough
+++ b/package/gluon-core/luasrc/lib/gluon/upgrade/150-poe-passthrough
@@ -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