Debian Codegraph @

ctdb/tests/UNIT/eventscripts/stubs/ctdb_killtcp

raw
1 #!/bin/sh
2
3 # Only supports reading from stdin
4
5 # shellcheck disable=SC2034
6 iface="$1" # ignored
7
8 while read -r src dst; do
9 sed -i -e "/^${dst} ${src}\$/d" "$FAKE_NETSTAT_TCP_ESTABLISHED_FILE"
10 done