150-poe-passthrough 346 B

12345678910111213141516
  1. #!/usr/bin/lua
  2. local sysconfig = require 'gluon.sysconfig'
  3. local site = require 'gluon.site'
  4. if sysconfig.gluon_version or not site.poe_passthrough(false) then
  5. os.exit(0)
  6. end
  7. local uci = require('simple-uci').cursor()
  8. if uci:get('system', 'poe_passthrough') then
  9. uci:set('system', 'poe_passthrough', 'value', true)
  10. uci:save('system')
  11. end