Skip to content

Commit 9f7f3f7

Browse files
authored
Fix switch firmware bash code (#27)
Signed-off-by: Anthony Floeder <anthony.floeder@hpe.com>
1 parent 28ea2be commit 9f7f3f7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/guides/firmware-upgrade/readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ In order to upgrade the firmware on the PCIe switch, the `switchtec` kernel driv
1717
```bash
1818
IMAGE=$1 # Provide the path to the firmware image file
1919
SWITCHES=("/dev/switchtec0" "/dev/switchtec1")
20-
for SWITCH in $SWITCHES; do switchtec fw-update $SWITCH $IMAGE --yes; done
20+
for SWITCH in "${SWITCHES[@]}"; do switchtec fw-update "$SWITCH" "$IMAGE" --yes; done
2121
```
2222

23-
2423
## NVMe Drive Firmware Upgrade
2524

2625
In order to upgrade the firmware on NVMe drives attached to Rabbit, the `switchtec` and `switchtec-nvme` executables must be installed. All firmware downloads to drives are sent to the physical function of the drive which is accessible only using the `switchtec-nvme` executable.

0 commit comments

Comments
 (0)