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