sonic-buildimage/device/nokia/arm64-nokia_ixs7215_52xb-r0/platform_reboot
Pavan-Nokia a850175776
[Nokia-7215-A1] Update Nokia-7215-A1 platform (#15342)
Update Nokia-7215-A1 platform to address UT and OC test failures
2023-08-02 09:08:15 -07: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