51fa77fa8d
* Automatic fw upgrade for mlnx platform Implement script for firmware upgrade to required version Add firmware binary and script to ops-syncd-mlnx container Add pciutils and usbutils to sonic-generic.bin * Update firmware installation message It is possible to do both upgrade and downgrade Change "Upgrading" to "Installing compatible version" Signed-off-by: marian-pritsak <marianp@mellanox.com>
19 lines
278 B
Bash
Executable File
19 lines
278 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function clean_up {
|
|
service syncd stop
|
|
service rsyslog stop
|
|
exit
|
|
}
|
|
|
|
trap clean_up SIGTERM SIGKILL
|
|
|
|
# fw-upgrade will exit if firmware was actually upgraded or if some error
|
|
# occures
|
|
. mlnx-fw-upgrade.sh
|
|
|
|
service rsyslog start
|
|
service syncd start
|
|
|
|
read
|