postinst is in bladerf-firmware-fx3 0.2016.01~rc1-3.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/bin/sh
set -e
UPSTREAM='https://www.nuand.com/fx3/bladeRF_fw_v1.9.0.img'
CHECKSUM='9fd35cdced2a33a08a724ee5162ee6b9'
IMGFILE=/usr/share/Nuand/bladeRF/bladeRF_fw.img
checkfile () {
md5sum --check <<- EOMD5SUM
$CHECKSUM $IMGFILE
EOMD5SUM
}
# Fetch firmware if needed
if [ ! -s $IMGFILE ] || ! checkfile ; then
echo "Downloading firmware from nuand.com..."
rm -f $IMGFILE
wget -O $IMGFILE $UPSTREAM || cat <<- EOMSG 1>&2
Warning: Failed to download firmware for bladeRF.
Please run "dpkg-reconfigure bladerf-firmware-fx3"
again when networking is up, or copy the firmware manually
to $IMGFILE
EOMSG
fi
|