diff options
Diffstat (limited to 'dhcpcd-hooks/01-test')
-rw-r--r-- | dhcpcd-hooks/01-test | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dhcpcd-hooks/01-test b/dhcpcd-hooks/01-test index 609b3a1..ef7896d 100644 --- a/dhcpcd-hooks/01-test +++ b/dhcpcd-hooks/01-test @@ -1,7 +1,6 @@ # Just echo our DHCP options we have -case ${reason} in -TEST) set | grep "^\(interface\|metric\|pid\|reason\|skip_hooks\)=" | sort +if [ "${reason}" = "TEST" ]; then + set | grep "^\(interface\|metric\|pid\|reason\|skip_hooks\)=" | sort set | grep "^\(new_\|old_\)" | sort - ;; -esac +fi |