openpilot v0.4.3.2 release

old-commit-hash: 78df63a6af
This commit is contained in:
Vehicle Researcher
2018-03-31 07:33:16 +00:00
parent 1596d63134
commit cd558d30d1
36 changed files with 378 additions and 394 deletions
+4 -1
View File
@@ -5,11 +5,14 @@ if [ -z "$PASSIVE" ]; then
fi
function launch {
DO_UPDATE=$(cat /data/params/d/ShouldDoUpdate)
# apply update
if [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then
if [ "$DO_UPDATE" == "1" ] && [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then
git reset --hard @{u} &&
git clean -xdf &&
exec "${BASH_SOURCE[0]}"
echo -n 0 > /data/params/d/ShouldDoUpdate
echo -n 0 > /data/params/d/IsUpdateAvailable
fi
# no cpu rationing for now