summaryrefslogtreecommitdiff
path: root/ctdb/tests/UNIT/eventscripts/stubs/ctdb_killtcp
blob: 0f40058ee57b29b34166a5c87dda192fec9f8da3 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Only supports reading from stdin

# shellcheck disable=SC2034
iface="$1"  # ignored

while read -r src dst; do
	sed -i -e "/^${dst} ${src}\$/d" "$FAKE_NETSTAT_TCP_ESTABLISHED_FILE"
done