summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/chain/0002duplicate_0
blob: 025114ea08ecc4eb420edfc23f03758df717bb1b (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

$IPTABLES -t filter -N c1 || exit 1
$IPTABLES -t filter -N c1

if [ $? -eq 0 ]; then
	echo "E: Duplicate chains" >&2
	exit 0
fi