commit | 9d16da6c9850d4b0db82cba961353015cfb47def | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Tue Aug 22 14:04:46 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Mon Aug 28 16:57:45 2017 +0000 |
tree | f5300ccb04a63a16f75b7af909dd9050ddb6f965 | |
parent | 1fa612cd3813cd5ffa7280bcf6f4648b88c71b3f [diff] |
obmc-flash-bmc-setenv: Use unescaped instance name Use the unescaped character in the service file (%I) to be able to check for the ascii character which is more intuitive. That way the function in the script can be used by other functions and just pass the ascii character. Change-Id: Ie07f33faaccc42eb7fd574fe6d72dac7858c380e Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc b/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc index c452225..4be7585 100644 --- a/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc +++ b/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc
@@ -140,8 +140,8 @@ } ubi_setenv() { - varName="${variable%"\x3d"*}" - value="${variable##*"\x3d"}" + varName="${variable%=*}" + value="${variable##*=}" fw_setenv "$varName" "$value" }
diff --git a/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-setenv@.service b/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-setenv@.service index c26273f..73b55d4 100644 --- a/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-setenv@.service +++ b/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-setenv@.service
@@ -4,5 +4,5 @@ [Service] Type=oneshot RemainAfterExit=no -ExecStart=/usr/bin/env obmc-flash-bmc ubisetenv %i +ExecStart=/usr/bin/env obmc-flash-bmc ubisetenv %I SyslogIdentifier=obmc-flash-bmc