]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix TEST.
authorRoy Marples <roy@marples.name>
Wed, 1 Oct 2008 11:15:33 +0000 (11:15 +0000)
committerRoy Marples <roy@marples.name>
Wed, 1 Oct 2008 11:15:33 +0000 (11:15 +0000)
dhcpcd.c

index 3d984b1feae6638caa0a8a08279bb3dfa325493c..de3598ace41454a72d2da08efc7b8ab7ff4da213 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1261,11 +1261,10 @@ main(int argc, char **argv)
        for (iface = ifaces; iface; iface = iface->next)
                init_state(iface, argc, argv);
        sort_interfaces();
-       if (!(options & DHCPCD_TEST)) {
-               for (iface = ifaces; iface; iface = iface->next) {
+       for (iface = ifaces; iface; iface = iface->next) {
+               if (!(options & DHCPCD_TEST))
                        run_script(iface, "PREINIT");
-                       start_interface(iface);
-               }
+               start_interface(iface);
        }
        start_eloop();
        /* NOTREACHED */