Skip to content
Snippets Groups Projects
Select Git revision
  • b56b6640e6aab7d35e670acafbcc6e03f7a07bd8
  • 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
41 results

0016-netifd-update-to-latest-git-master.patch

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    check_site.lua 1.48 KiB
    local has_tls = (function()
    	local f = io.open((os.getenv('IPKG_INSTROOT') or '') .. '/lib/gluon/features/tls')
    	if f then
    		f:close()
    		return true
    	end
    	return false
    end)()
    
    local branches = table_keys(need_table({'autoupdater', 'branches'}, function(branch)
    	need_alphanumeric_key(branch)
    
    	need_string(in_site(extend(branch, {'name'})))
    	need_array(extend(branch, {'mirrors'}), function(mirror)
    		alternatives(function()
    			need_string_match(mirror, 'http://')
    		end, function()
    			need_string_match(mirror, 'https://')
    			need(mirror, function() return has_tls end, nil,
    				"use HTTPS only if the 'tls' feature is enabled")
    		end, function()
    			need_string_match(mirror, '^//')
    		end)
    	end)
    
    	local pubkeys = need_string_array_match(in_site(extend(branch, {'pubkeys'})), '^%x+$')
    	need_number(in_site(extend(branch, {'good_signatures'})))
    	need(in_site(extend(branch, {'good_signatures'})), function(good_signatures)
    		return good_signatures <= #pubkeys
    	end, nil, string.format('be less than or equal to the number of public keys (%d)', #pubkeys))
    
    	obsolete(in_site(extend(branch, {'probability'})), 'Use GLUON_PRIORITY in site.mk instead.')
    end))
    
    need_one_of(in_site({'autoupdater', 'branch'}), branches, false)
    
    -- Check GLUON_AUTOUPDATER_BRANCH
    local default_branch
    local f = io.open((os.getenv('IPKG_INSTROOT') or '') .. '/lib/gluon/autoupdater/default_branch')
    if f then
    	default_branch = f:read('*line')
    	f:close()
    end
    need_one_of(value('GLUON_AUTOUPDATER_BRANCH', default_branch), branches, false)