sonic-buildimage/platform/barefoot/sonic-platform-modules-bfn-montara/scripts/sensors
Volodymyr Boiko 8c4fd2b73b
[barefoot][platform] Refactor legacy scripts (#6871)
Removed or adapted obsolete code

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
2021-02-24 09:42:18 -08:00

12 lines
243 B
Bash
Executable File

#!/bin/bash
DOCKER_EXEC_FLAGS="i"
# Determine whether stdout is on a terminal
if [ -t 1 ] ; then
DOCKER_EXEC_FLAGS+="t"
fi
python3 -m sonic_platform.bfn_extensions.platform_sensors "$@"
docker exec -$DOCKER_EXEC_FLAGS pmon sensors "$@"