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

19 lines
321 B
Plaintext
Raw Normal View History

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