Re: Upgrade to 1.51SP1
Posted by
hans2 on
Feb 24, 2016; 8:53pm
URL: https://itus.accessinnov.com/Upgrade-to-1-51SP1-tp10p163.html
Roadrunnere42 wrote
I'm not a script expert , but doesn’t the script reads at present
[[ -f ${MOUNT}/updates/ItusrestoreImage ]] && cp -v /overlay/updates/ItusrestoreImage /overlay/ItusrestoreImage && cp -v /overlay/updates/ItusrestoreImage /overlay/ItusrouterImage
which means if the itusrestoreimage is true then copy (cp -v /overlay/updates/ItusrestoreImage ) to ( /overlay/ItusrestoreImage) it then repeats the same command, which i don't think should be there.
roadrunnere42
Hi Roadrunner
Rights, I've made it a bit more readable (for me):
update(){
echo "Updating ...."
if [ -f ${MOUNT}/updates/ItusrestoreImage ]; then
cp -v ${MOUNT}/updates/ItusrestoreImage /overlay/ItusrestoreImage # local backup
cp -v ${MOUNT}/updates/ItusrestoreImage /overlay/ItusrouterImage # updates router image
cp -v ${MOUNT}/updates/ItusrestoreImage /overlay/ItusbridgeImage # updates bridge image
cp -v ${MOUNT}/updates/ItusrestoreImage /overlay/ItusgatewayImage # updates gateway image
fi
echo "FIRMWARE DOWNLOAD COMPLETE, PLEASE RUN A FACTORY RESET TO COMPLETE UPGRADE" >> /tmp/snort/alert.fast
}
This removes the router.tar.gz check - not used anymore.
I've updated the start post as well
No more: Shield Pro v1, Chaos Calmer, FW 1.51 SP1