cbe7493b8e
- Improve sonic-mgmt platform test suite pass rate - Improve coverage of platform unit tests - Provide platform specific reboot logic as per platform porting guide - Fix bug due to pcie.yaml file being located in the wrong directory
12 lines
193 B
Bash
12 lines
193 B
Bash
#!/bin/bash
|
|
|
|
function SafePwrCycle() {
|
|
sync ; sync
|
|
umount -fa > /dev/null 2&>1
|
|
|
|
# Write CPLD register to initiate cold reboot
|
|
sudo i2cset -f -y 0 0x41 0x10 0x00
|
|
}
|
|
|
|
SafePwrCycle
|