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