sonic-buildimage/platform/innovium/sonic-platform-modules-netberg/aurora-715/utils/shutdown
Andrew Sapronov 8eab0e02df
Added Netberg Aurora 715 support (#8604)
* [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>
2021-10-26 13:04:27 -07:00

19 lines
354 B
Bash
Executable File

#!/bin/sh
mr_reboot() {
sudo rmmod x86-64-netberg-aurora-715
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