Skip to content
Snippets Groups Projects
Select Git revision
  • 0f3f4bc8971c9c4ab60d39c2f3b558b69835f80a
  • 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

supported_devices.rst

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    zzz-gluon-upgrade 1019 B
    #!/bin/sh
    
    
    UPGRADE_DIR=/lib/gluon/upgrade
    VERSION_DIR=/lib/gluon/version
    
    
    if [ -x /lib/gluon/legacy/legacy-upgrade ] && /lib/gluon/legacy/legacy-upgrade; then
    	HAS_LEGACY=1
    else
    	HAS_LEGACY=
    fi
    
    
    mkdir -p "$VERSION_DIR"
    
    
    version_of() {
    	opkg status "gluon-$1" | awk '/^Version: / { print $2 }'
    }
    
    oldversion_of() {
    	cat "$VERSION_DIR"/"$1" 2>/dev/null
    }
    
    do_dir() {
    	[ -d "$1" ] || return
    
    	local s
    	for s in "$1"/*; do "$s"; done
    }
    
    do_component() {
    	local component="$1"
    	local version="$(version_of "$component")"
    	[ "$version" ] || continue
    
    	(
    		cd "$component"
    
    		local oldversion="$(oldversion_of "$component")"
    		if [ -z "$oldversion" ]; then
    			if [ "$HAS_LEGACY" ]; then
    				do_dir legacy
    			else
    				do_dir initial
    			fi
    		fi
    
    		do_dir invariant
    
    		echo "$version" > "$VERSION_DIR"/"$component"
    	)
    }
    
    
    cd "$UPGRADE_DIR"
    
    do_component core
    
    for component in *; do
    	[ "$component" != 'core' ] || continue
    	do_component "$component"
    done
    
    if [ "$HAS_LEGACY" ]; then
    	/lib/gluon/legacy/legacy-upgrade-late
    fi