summaryrefslogtreecommitdiff
path: root/external/bsd/dhcpcd/dist/dhcpcd-hooks/01-test
blob: cb3d7ca8b83e05da1138f9986f2849c90858999b (plain)
1
2
3
4
5
6
7
8
9
10
# $NetBSD: 01-test,v 1.8 2015/07/09 10:15:34 roy Exp $

# Echo the interface flags, reason and message options

if [ "$reason" = "TEST" ]; then
	set | grep "^\(interface\|pid\|reason\|profile\|skip_hooks\)=" | sort
	set | grep "^if\(carrier\|flags\|mtu\|wireless\|ssid\)=" | sort
	set | grep "^\(new_\|old_\|nd[0-9]*_\)" | sort
	exit 0
fi