940aaa0cbe
Fix #8068 Update Innovium configs on Cameo and Wistron platforms
19 lines
353 B
Bash
Executable File
19 lines
353 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mr_reboot() {
|
|
|
|
sudo rmmod x86-64-cameo-escc601-32q
|
|
sudo i2cset -y 0 0x31 0xa1 0
|
|
|
|
}
|
|
|
|
if [ $# -eq 0 ] || [ $@ = "-r" ] || [ $@ = "--reboot" ] || [ $@ = "-h" ] || [ $@ = "-P" ] || [ $@ = "--poweroff" ]; then
|
|
sync;sync
|
|
mr_reboot
|
|
elif [ $@ = "-H" ] || [ $@ = "--halt" ]; then
|
|
sudo halt
|
|
else
|
|
echo "unsupported option"
|
|
fi
|
|
|