sonic-buildimage/device/cameo/x86_64-cameo_esc602_32q-r0/platform_reboot
Tony Titus fbd4e452c7
[201911] [Innovium] Add new platforms and config updates (#7545)
Update Innovium configs + Add new platforms supporting Innovium chips
2021-05-17 12:30:20 -07:00

17 lines
276 B
Bash
Executable File

#!/bin/sh
mr_reboot() {
sudo rmmod x86-64-cameo-esc602-32q
sudo i2cset -y 0 0x30 0xa1 0
}
if [ $# -eq 0 ] || [ $@ = "-f" ] || [ $@ = "--force" ] || [ $@ = "reboot" ]; then
mr_reboot
elif [ $@ = "-p" ] ; then
sudo halt
else
echo "unsupported option"
fi