From 30a4ae7329a1201e4f07c46bd5291917915be0c1 Mon Sep 17 00:00:00 2001 From: Stephen Sun Date: Wed, 18 Dec 2019 18:52:57 +0800 Subject: [PATCH] [component]update name: onie-fw-updated.sh the onie-fw-update has been postfixed with ".sh" after installed on the DUT. --- .../mlnx-platform-api/sonic_platform/component.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/component.py b/platform/mellanox/mlnx-platform-api/sonic_platform/component.py index 6c825fd9e527..106aa4d84770 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/component.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/component.py @@ -95,10 +95,10 @@ class ComponentBIOS(Component): BIOS_VERSION_PARSE_PATTERN = 'OEM[\s]*Strings\n[\s]*String[\s]*1:[\s]*([0-9a-zA-Z_\.]*)' BIOS_PENDING_UPDATE_PATTERN = '([0-9A-Za-z_]*.rom)[\s]*\|[\s]*bios_update' - ONIE_FW_UPDATE_CMD_ADD = "/usr/bin/onie-fw-update add {}" - ONIE_FW_UPDATE_CMD_REMOVE = "/usr/bin/onie-fw-update remove {}" - ONIE_FW_UPDATE_CMD_UPDATE = "/usr/bin/onie-fw-update update" - ONIE_FW_UPDATE_CMD_SHOW = "/usr/bin/onie-fw-update show-pending" + ONIE_FW_UPDATE_CMD_ADD = "/usr/bin/onie-fw-update.sh add {}" + ONIE_FW_UPDATE_CMD_REMOVE = "/usr/bin/onie-fw-update.sh remove {}" + ONIE_FW_UPDATE_CMD_UPDATE = "/usr/bin/onie-fw-update.sh update" + ONIE_FW_UPDATE_CMD_SHOW = "/usr/bin/onie-fw-update.sh show-pending" BIOS_QUERY_VERSION_COMMAND = 'dmidecode -t 11'