Index: scripts/run.sh =================================================================== diff -u -re4a0e2fc4c7ae0cbce0d670772276bf7f5ff3845 -r143bb84e7a23e5dbc9fa5bd29e8aa0407b9a7109 --- scripts/run.sh (.../run.sh) (revision e4a0e2fc4c7ae0cbce0d670772276bf7f5ff3845) +++ scripts/run.sh (.../run.sh) (revision 143bb84e7a23e5dbc9fa5bd29e8aa0407b9a7109) @@ -35,8 +35,8 @@ POSTMSG_RTC="RTC passed" POSTMSG_WIFI="WiFi passed" POSTMSG_BLUETOOTH="Bluetooth passed" +POSTMSG_APPSHA="App shasum passed" - # cleanup the POST log file echo "Start: $(currDate)" > $POSTLOG @@ -135,7 +135,21 @@ echo $POSTMSG_WIFI >> $POSTLOG fi +#check the denali applicatoin checksum +#md5sum -b --tag denali >> denali +SHA_ACT=$(tail -c 83 ./denali | cut -c19-82) +SHA_EXP=$(head -c -83 ./denali | sha256sum -b --tag | cut -c14-77) +if [ "$SHA_ACT" == "$SHA_EXP" ]; then + echo $POSTMSG_APPSHA >> $POSTLOG +else + echo "Application Checksum Failed." + # Disabled for now, it needs to be setup on bamboo server. + # exit 100 +fi + + + #launching denali application, disable keep-alive $HOME/denali -u &