8eab0e02df
* [202012][platform/barefoot] (#8543) Why I did it Pcied running by python 2. How I did it dropped python2 support and add python3 support for pcied in file docker-pmon.supervisord.conf.j2 How to verify it docker exec pmon supervisorctl status * [Netberg][nba715] Initial support for Netberg Aurora 715 switch Signed-off-by: Andrew Sapronov <andrew.sapronov@gmail.com> Co-authored-by: Kostiantyn Yarovyi <kostiantynx.yarovyi@intel.com>
19 lines
348 B
Bash
Executable File
19 lines
348 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mr_reboot() {
|
|
|
|
sudo rmmod x86-64-netberg-aurora-715
|
|
sudo i2cset -y 0 0x30 0xa1 0
|
|
|
|
}
|
|
|
|
if [ $# -eq 0 ] || [ $@ = "--halt" ] || [ $@ = "-f" ] || [ $@ = "--force" ]; then
|
|
sudo /sbin/halt
|
|
elif [ $@ = "-p" ] || [ $@ = "--reboot" ] || [ $@ = "--poweroff" ]; then
|
|
sync;sync
|
|
mr_reboot
|
|
else
|
|
echo "unsupported option"
|
|
fi
|
|
|