diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-10-28 23:25:43 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-10-28 23:25:43 +0200 |
commit | 281c8d47000f591daae8c74c737825ecdccf4326 (patch) | |
tree | 90cc5e3f8f1a22c4fa17c7573b2e9c81593aee5f | |
parent | 37f95f67fec2b2460903ffa5255b1beeba1731fd (diff) | |
download | rockbox-281c8d47000f591daae8c74c737825ecdccf4326.tar.gz rockbox-281c8d47000f591daae8c74c737825ecdccf4326.zip |
nwztools/scripts: export model id in an environment variable
This is useful because there is no easy way to get it except from Sony's tool,
unless one knows the npv node, but that requires to know the model already...
Change-Id: I202f7cdb2f7cf924cc5bdb53c17e34600d4bf153
-rw-r--r-- | utils/nwztools/scripts/exec_file.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/nwztools/scripts/exec_file.sh b/utils/nwztools/scripts/exec_file.sh index 368909123f..a624e4df35 100644 --- a/utils/nwztools/scripts/exec_file.sh +++ b/utils/nwztools/scripts/exec_file.sh | |||
@@ -32,6 +32,8 @@ fi | |||
32 | 32 | ||
33 | # get update filename | 33 | # get update filename |
34 | _UPDATE_FN_=`nvpstr ufn` | 34 | _UPDATE_FN_=`nvpstr ufn` |
35 | # export model id | ||
36 | export ICX_MODEL_ID=`/usr/local/bin/nvpflag -x mid` | ||
35 | 37 | ||
36 | # extract second file | 38 | # extract second file |
37 | fwpchk -f /contents/$_UPDATE_FN_.UPG -c -1 exec | 39 | fwpchk -f /contents/$_UPDATE_FN_.UPG -c -1 exec |