]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix persistent option.
authorRoy Marples <roy@marples.name>
Tue, 11 Aug 2009 20:13:41 +0000 (20:13 +0000)
committerRoy Marples <roy@marples.name>
Tue, 11 Aug 2009 20:13:41 +0000 (20:13 +0000)
configure.c

index cf230fbddbcc912c1c976d4735cf0fe840fb4beb..828a8f9dbdbd672be92d82f9144f52b59fc721d7 100644 (file)
@@ -655,10 +655,12 @@ configure(struct interface *iface)
        sort_interfaces();
 
        if (dhcp == NULL) {
-               build_routes();
-               if (iface->addr.s_addr != 0)
-                       delete_address(iface);
-               run_script(iface);
+               if (!(ifo->options & DHCPCD_PERSISTENT)) {
+                       build_routes();
+                       if (iface->addr.s_addr != 0)
+                               delete_address(iface);
+                       run_script(iface);
+               }
                return 0;
        }