From a6a999af95ff70742b6d67b9c92ac40a9f013e88 Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Mon, 3 Feb 2020 09:59:41 -0500 Subject: [PATCH] tcpreplay fix --- salt/common/tools/sbin/so-tcpreplay | 6 ++++-- salt/common/tools/sbin/so-tcpreplay-restart | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/salt/common/tools/sbin/so-tcpreplay b/salt/common/tools/sbin/so-tcpreplay index 69cee2f68..887a49415 100755 --- a/salt/common/tools/sbin/so-tcpreplay +++ b/salt/common/tools/sbin/so-tcpreplay @@ -15,14 +15,16 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# Usage: so-tcpreplay "/opt/so/samples/*" + REPLAY_ENABLED=$(docker images | grep so-tcpreplay) REPLAY_RUNNING=$(docker ps | grep so-tcpreplay) if [ "$REPLAY_ENABLED" != "" ] && [ "$REPLAY_RUNNING" != "" ]; then docker cp so-tcpreplay:/opt/samples /opt/samples - docker exec -it so-tcpreplay /usr/bin/tcpreplay -i bond0 -M10 $1 + docker exec -it so-tcpreplay /usr/local/bin/tcpreplay -i bond0 -M10 $1 else echo "Replay functionality not enabled! To enable, run `so-tcpreplay-start`" echo - echo "Note that you will need internet access to download the appropiriate components" + echo "Note that you will need internet access to download the appropriate components" fi diff --git a/salt/common/tools/sbin/so-tcpreplay-restart b/salt/common/tools/sbin/so-tcpreplay-restart index 61e9016d0..ab6de62db 100755 --- a/salt/common/tools/sbin/so-tcpreplay-restart +++ b/salt/common/tools/sbin/so-tcpreplay-restart @@ -17,5 +17,5 @@ . /usr/sbin/so-common -/usr/sbin/so-restart tcreplay $1 +/usr/sbin/so-restart tcpreplay $1