From: Roy Marples Date: Tue, 24 Aug 2010 10:52:24 +0000 (+0000) Subject: Move dump into it's own file and remove new_ from the variable names. X-Git-Tag: v5.2.9~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a9d3f45d895185e4dd1c2b44700a30c063f47d9;p=thirdparty%2Fdhcpcd.git Move dump into it's own file and remove new_ from the variable names. --- diff --git a/dhcpcd-hooks/01-test b/dhcpcd-hooks/01-test index b594e93f..b46d4005 100644 --- a/dhcpcd-hooks/01-test +++ b/dhcpcd-hooks/01-test @@ -2,7 +2,5 @@ if [ "$reason" = "TEST" ]; then set | grep "^\(interface\|metric\|pid\|reason\|skip_hooks\)=" | sort -fi -if [ "$reason" = "TEST" -o "$reason" = "DUMP" ]; then set | grep "^\(new_\|old_\)" | sort fi diff --git a/dhcpcd-hooks/02-dump b/dhcpcd-hooks/02-dump new file mode 100644 index 00000000..cbb46eae --- /dev/null +++ b/dhcpcd-hooks/02-dump @@ -0,0 +1,5 @@ +# Just echo our DHCP options we have + +if [ "$reason" = "DUMP" ]; then + set | sed -ne 's/^new_//p' | sort +fi