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

lsupgrade.sh

Blame
  • Forked from firmware / FFS Gluon
    2252 commits behind the upstream repository.
    lsupgrade.sh 1.15 KiB
    #!/bin/bash
    
    set -e
    # Script to list all upgrade scripts in a clear manner
    # Limitations:
    #  * Does only show scripts of packages whose `files'/`luasrc' directories represent the whole image filesystem (which are all Gluon packages)
    
    
    SUFFIX1=files/lib/gluon/upgrade
    SUFFIX2=luasrc/lib/gluon/upgrade
    
    
    shopt -s nullglob
    
    
    if tty -s <&1; then
    	RED="$(echo -e '\x1b[01;31m')"
    	GREEN="$(echo -e '\x1b[01;32m')"
    	BLUE="$(echo -e '\x1b[01;34m')"
    	RESET="$(echo -e '\x1b[0m')"
    else
    	RED=
    	GREEN=
    	BLUE=
    	RESET=
    fi
    
    
    pushd "$(dirname "$0")/.." >/dev/null
    
    find ./package packages -name Makefile | while read -r makefile; do
    	dir="$(dirname "$makefile")"
    
    	pushd "$dir" >/dev/null
    
    	repo="$(dirname "$dir" | cut -d/ -f 2)"
    	dirname="$(dirname "$dir" | cut -d/ -f 3-)"
    	package="$(basename "$dir")"
    
    	for file in "${SUFFIX1}"/*; do
    		echo "${GREEN}$(basename "${file}")${RESET}" "(${BLUE}${repo}${RESET}/${dirname}${dirname:+/}${RED}${package}${RESET}/${SUFFIX1})"
    	done
    	for file in "${SUFFIX2}"/*; do
    		echo "${GREEN}$(basename "${file}")${RESET}" "(${BLUE}${repo}${RESET}/${dirname}${dirname:+/}${RED}${package}${RESET}/${SUFFIX2})"
    	done
    	popd >/dev/null
    done | sort
    
    popd >/dev/null