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

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
2021-03-04 21:23:05 +00: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 "$@"