]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Move dump into it's own file and remove new_ from the variable names.
authorRoy Marples <roy@marples.name>
Tue, 24 Aug 2010 10:52:24 +0000 (10:52 +0000)
committerRoy Marples <roy@marples.name>
Tue, 24 Aug 2010 10:52:24 +0000 (10:52 +0000)
dhcpcd-hooks/01-test
dhcpcd-hooks/02-dump [new file with mode: 0644]

index b594e93f3f86b5f4e4349ed337c7972288126ae3..b46d40050bf2b2df6f760246634c4786ba503d62 100644 (file)
@@ -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 (file)
index 0000000..cbb46ea
--- /dev/null
@@ -0,0 +1,5 @@
+# Just echo our DHCP options we have
+
+if [ "$reason" = "DUMP" ]; then
+       set | sed -ne 's/^new_//p' | sort
+fi