From 281c8d47000f591daae8c74c737825ecdccf4326 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 28 Oct 2016 23:25:43 +0200 Subject: 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 --- utils/nwztools/scripts/exec_file.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/nwztools') 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 # get update filename _UPDATE_FN_=`nvpstr ufn` +# export model id +export ICX_MODEL_ID=`/usr/local/bin/nvpflag -x mid` # extract second file fwpchk -f /contents/$_UPDATE_FN_.UPG -c -1 exec -- cgit v1.2.3