summaryrefslogtreecommitdiff
path: root/scripts/vyatta-encapsulation
blob: f1cae8b17d6c5a0074ce547494897bac2a36ab10 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

list="gre gre-bridge gre-multipoint ipip sit ipip6 ip6ip6"
full_list="${list}"
if [[ -n "$1" ]]; then
	for f in ${full_list}; do if [[ "$1" = "$f" ]]; then exit 0; fi; done
	echo "Must be (${full_list})"
	exit 1;
else
	echo ${full_list}
fi