aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/om-fwupgradecfg-gen.sh
Commit message (Expand)AuthorAgeFilesLines
* ar71xx: Skip more hashed blocks for OM2P(-HS) 64k variantSven Eckelmann2018-09-101-1/+1
* ipq40xx: add support for OpenMesh A62Sven Eckelmann2018-04-231-1/+9
* om-fwupgradecfg-gen.sh: add support for the A42Sven Eckelmann2018-01-131-4/+18
* treewide: fix shellscript syntax errors/typosLorenzo Santina2017-09-131-1/+1
* scripts: make all scripts executableStijn Tintel2017-07-141-0/+0
* scripts/om-fwupgradecfg-gen.sh: add support for the A60Sven Eckelmann2017-02-141-2/+2
* build: use mkhash to replace various quirky md5sum/openssl callsFelix Fietkau2017-01-051-5/+5
* scripts/om-fwupgradecfg-gen.sh: add support for the OM5P-ACJohn Crispin2016-04-091-2/+2
* scripts/om-fwupgradecfg-gen.sh: Generate sha256sum for uboot verificationJohn Crispin2016-04-091-0/+4
* scripts/om-fwupgradecfg-gen.sh: add support for the MR1750John Crispin2015-09-141-2/+2
* scripts/om-fwupgradecfg-gen.sh: Fix u-boot image md5sum checkJohn Crispin2015-09-141-0/+3
* scripts/om-fwupgradecfg-gen.sh: add support for the MR900John Crispin2014-11-141-2/+2
* scripts/om-fwupgradecfg-gen.sh: add support for the OM5PJohn Crispin2014-07-201-2/+2
* scripts/om-fwupgradecfg-gen.sh: add support for the MR600Gabor Juhos2012-11-181-9/+27
* scripts: rename om2p-fwupgradecfg-gen.sh to more generic om-fwupgradecfg-gen.shGabor Juhos2012-11-141-0/+52
echo "Usage: ipkg-make-index <package_directory>" >&2 exit 1 fi empty=1 for pkg in `find $pkg_dir -name '*.ipk' | sort`; do empty= name="${pkg##*/}" name="${name%%_*}" [[ "$name" = "kernel" ]] && continue [[ "$name" = "libc" ]] && continue echo "Generating index for package $pkg" >&2 file_size=$(stat -L -c%s $pkg) sha256sum=$(mkhash sha256 $pkg) # Take pains to make variable value sed-safe sed_safe_pkg=`echo $pkg | sed -e 's/^\.\///g' -e 's/\\//\\\\\\//g'` tar -xzOf $pkg ./control.tar.gz | tar xzOf - ./control | sed -e "s/^Description:/Filename: $sed_safe_pkg\\ Size: $file_size\\ SHA256sum: $sha256sum\\ Description:/" echo "" done [ -n "$empty" ] && echo exit 0