Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2128)

Unified Diff: pack_stub

Issue 6904145: fix mode=autoupdate on CR48 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/firmware.git@0.12.433.B
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pack_stub
diff --git a/pack_stub b/pack_stub
index d331b8a49466dcf80fff7bc227d678862f0c2745..fd1c016c664188f039e20ab5376adb7256bd2698 100644
--- a/pack_stub
+++ b/pack_stub
@@ -149,29 +149,34 @@ case "$1" in
exit 0
;;
--mode=autoupdate)
- # This command is inside the stub for quick launch.
- fw_version="$(crossystem fwid)"
- ec_info="$(mosys -k ec info 2>/dev/null)" || ec_info=""
- ec_version="$(eval "$ec_info"; echo "$fw_version")"
- notify_update=0
- verbose_message "ec_version: $ec_version ; ec_info: $ec_info"
- if [ "$SHELLBALL_FWVERSION" != "$fw_version" ] &&
- [ "$SHELLBALL_FWVERSION" != "IGNORE" ]; then
- echo "System firmware update available: [$SHELLBALL_FWVERSION]"
- echo "Currently installed system firmware: [$fw_version]"
- notify_update=1
- fi
- if [ "$SHELLBALL_ECVERSION" != "$ec_version" ] &&
- [ "$SHELLBALL_ECVERSION" != "IGNORE" ]; then
- echo "EC firmware update available: [$SHELLBALL_ECVERSION]"
- echo "Currently installed EC firmware: [$ec_version]"
- notify_update=1
- fi
- if [ $notify_update -eq 0 ]; then
- echo "
- No firmware auto update is available. Returning gracefully.
- "
- exit 0
+ PLATFORM="$(/usr/sbin/mosys platform name 2>/dev/null || true)"
+ # Mario uses the old updater.
+ if [ "$PLATFORM" != "Mario" ] &&
+ [ "$PLATFORM" != "ZGA" ]; then
+ # This command is inside the stub for quick launch.
+ fw_version="$(crossystem fwid)"
+ ec_info="$(mosys -k ec info 2>/dev/null)" || ec_info=""
+ ec_version="$(eval "$ec_info"; echo "$fw_version")"
+ notify_update=0
+ verbose_message "ec_version: $ec_version ; ec_info: $ec_info"
+ if [ "$SHELLBALL_FWVERSION" != "$fw_version" ] &&
+ [ "$SHELLBALL_FWVERSION" != "IGNORE" ]; then
+ echo "System firmware update available: [$SHELLBALL_FWVERSION]"
+ echo "Currently installed system firmware: [$fw_version]"
+ notify_update=1
+ fi
+ if [ "$SHELLBALL_ECVERSION" != "$ec_version" ] &&
+ [ "$SHELLBALL_ECVERSION" != "IGNORE" ]; then
+ echo "EC firmware update available: [$SHELLBALL_ECVERSION]"
+ echo "Currently installed EC firmware: [$ec_version]"
+ notify_update=1
+ fi
+ if [ $notify_update -eq 0 ]; then
+ echo "
+ No firmware auto update is available. Returning gracefully.
+ "
+ exit 0
+ fi
fi
break
;;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698