sonic-buildimage/device/celestica/x86_64-cel_e1031-r0/platform_reboot

10 lines
195 B
Bash
Executable File

#!/bin/bash
declare -r CPLD_SETREG_PATH="/sys/bus/platform/devices/e1031.smc/setreg"
sync ; sync
umount -fa > /dev/null 2&>1
# Board level power cycle
echo "0x0113 0xAA" > ${CPLD_SETREG_PATH}