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

Side by Side Diff: util/dump_vpd_log

Issue 6683041: script to dump RO and RW VPDs into /var/log/vpd-log.conf. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vpd.git@0.11.257.B
Patch Set: Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2 #
3 # Helper function to dump VPD RO/RW content into /var/log/vpd_2.0.txt
4 #
5 # Used in:
6 # + OOBE reads this log file for the default locale setting.
7 # + chrome://system reads this log file.
8 #
9 TMP="/tmp/vpd_2.0.txt"
10 VPD_2_0="/var/log/vpd_2.0.txt"
11
12 if [ "$1" = "--force" ]; then
13 force=1
14 else
15 force=0
16 fi
17
18 # Since we don't change the VPD data too often, only create the log file
19 # if it does not exist.
20 if [ ! -f $VPD_2_0 -o $force -eq 1 ]; then
21 rm -f $TMP
22 (vpd -i "RO_VPD" -l || echo "RO VPD execute error.") >> $TMP
23 (vpd -i "RW_VPD" -l || echo "RW VPD execute error.") >> $TMP
24 chmod go-stwx $TMP
25 mv -f $TMP $VPD_2_0
26 fi
27
OLDNEW
« 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