sonic-buildimage/device/cameo/x86_64-cameo_esqc610_56sq-r0/platform_reboot

17 lines
278 B
Plaintext
Raw Normal View History

#!/bin/sh
mr_reboot() {
sudo rmmod x86-64-cameo-esqc610-56sq
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