sonic-buildimage/platform/barefoot/sonic-platform-modules-bfn-newport/scripts/fancontrol

12 lines
185 B
Plaintext
Raw Normal View History

#!/bin/bash
DOCKER_EXEC_FLAGS="i"
# Determine whether stdout is on a terminal
if [ -t 1 ] ; then
DOCKER_EXEC_FLAGS+="t"
fi
docker exec -$DOCKER_EXEC_FLAGS syncd fancontrol "$@"