Skip to content
Snippets Groups Projects
Select Git revision
  • c83b5b3cabff31b576f3082e261c4c90c6b2b6e3
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

520-node-info-whitespace-fix

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    520-node-info-whitespace-fix 452 B
    #!/usr/bin/lua
    local uci = require('simple-uci').cursor()
    local util = require 'gluon.util'
    
    local sname = uci:get_first('gluon-node-info', 'location')
    if sname then
      local options = {'longitude', 'latitude', 'altitude'}
      for _, option in ipairs(options) do
        local value = uci:get('gluon-node-info', sname, option)
        if value then
          uci:set('gluon-node-info', sname, option, util.trim(value))
        end
      end
      uci:save('gluon-node-info')
    end