Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 VPD_2_0="/var/log/vpd_2.0.txt" | |
| 10 | |
| 11 if [ "$1" = "--force" ]; then | |
| 12 force=1 | |
| 13 else | |
| 14 force=0 | |
| 15 fi | |
| 16 | |
| 17 # Since we don't change the VPD data too often, only create the log file | |
| 18 # if it does not exist. | |
| 19 if [ ! -f $VPD_2_0 || $force -eq 1 ]; then | |
| 20 vpd -i "RO_VPD" -l || echo "RO VPD execute error." | |
| 21 vpd -i "RW_VPD" -l || echo "RW VPD execute error." | |
| 22 fi >>$VPD_2_0 | |
|
Dmitry Polukhin
2011/03/11 07:56:51
What about making file creation atomic? I.e. redir
Louis
2011/03/11 08:56:17
Good point. Please see the new version.
On 2011/0
| |
| 23 | |
| OLD | NEW |