xref: /netbsd-src/external/bsd/dhcpcd/dist/hooks/01-test (revision 76c7fc5f6b13ed0b1508e6b313e88e59977ed78e)
1# Echo the interface flags, reason and message options
2
3if [ "$reason" = "TEST" ]; then
4	set | grep \
5	    "^\(interface\|pid\|reason\|protocol\|profile\|skip_hooks\)=" | sort
6	set | grep "^if\(carrier\|flags\|mtu\|wireless\|ssid\)=" | sort
7	set | grep "^\(new_\|old_\|nd[0-9]*_\)" | sort
8	exit 0
9fi
10