sonic-buildimage/device/nokia/arm64-nokia_ixs7215_52xb-r0/platform_reboot
Pavan-Nokia 393c6911c5 [Nokia-7215-A1] Update Nokia-7215-A1 platform (#15342)
Update Nokia-7215-A1 platform to address UT and OC test failures
2023-09-05 00:35:18 +08:00

12 lines
222 B
Bash

#!/bin/bash
function SafePwrCycle() {
sync ; sync
sudo umount -fa > /dev/null 2&>1
# Write CPLD register to initiate cold reboot
sudo echo 0 > /sys/bus/i2c/devices/i2c-0/0-0041/cold_reset
}
SafePwrCycle