fbd4e452c7
Update Innovium configs + Add new platforms supporting Innovium chips
19 lines
322 B
Bash
Executable File
19 lines
322 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mr_reboot() {
|
|
|
|
#echo "mr_reboot"
|
|
sudo rmmod x86-64-cameo-esc600-128q
|
|
sudo i2cset -y 0 0x30 0xa1 0
|
|
|
|
}
|
|
|
|
if [ $# -eq 0 ] || [ $@ = "-f" ] || [ $@ = "--force" ] || [ $@ = "reboot" ]; then
|
|
mr_reboot
|
|
elif [ $@ = "-p" ] ; then
|
|
# echo "sudo halt"
|
|
sudo halt
|
|
else
|
|
echo "unsupported option"
|
|
fi
|