Skip to content

Instantly share code, notes, and snippets.

@digitaltonic
digitaltonic / hinder.sh
Last active September 21, 2016 12:07 — forked from jgdavey/hinder.sh
#!/bin/bash
set -e
function printUsage() {
echo -e USAGE="\nUsage: $0 ip_address delay_in_ms percentage_of_packet_loss \nor\nUsage: $0 reset\n"
}
if [ "$#" == "0" ] || [ "$#" == "1" ] && [ "$1" != "reset" ] || [ "$1" != "reset" ] && [ "$#" -ne 3 ]; then
printUsage