xref: /minix3/external/bsd/dhcpcd/dist/dhcpcd-hooks/01-test (revision 9f20bfa6c4c442e2e798d91b11c2a5f8d6833a41)
1# $NetBSD: 01-test,v 1.8 2015/07/09 10:15:34 roy Exp $
2
3# Echo the interface flags, reason and message options
4
5if [ "$reason" = "TEST" ]; then
6	set | grep "^\(interface\|pid\|reason\|profile\|skip_hooks\)=" | sort
7	set | grep "^if\(carrier\|flags\|mtu\|wireless\|ssid\)=" | sort
8	set | grep "^\(new_\|old_\|nd[0-9]*_\)" | sort
9	exit 0
10fi
11