sonic-buildimage/device/nokia/armhf-nokia_ixs7215_52x-r0/platform_reboot
dflynn-Nokia cbe7493b8e
[Nokia ixs7215] Platform API 2.0 improvements (#6787)
- 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
2021-02-23 09:25:14 -08:00

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