☰
Debian Codegraph
@
2:4.24.6+dfsg-1
2:4.24.3+dfsg-1
/
/
ctdb
/
tests
/
UNIT
/
eventscripts
/
stubs
/
ctdb_killtcp
☽
☼
ctdb/tests/UNIT/eventscripts/stubs/ctdb_killtcp
code
plain
raw
GPL-3.0+
1992-2012 Andrew Tridgell and the Samba Team
debian/copyright
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