]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/install+setup/setup/networking.c
setup: change persistent network rules for new udev.
[people/teissler/ipfire-2.x.git] / src / install+setup / setup / networking.c
index cb0d38a34892f0535aaf528a31e0a8ab890c965d..edd3c71af0d60560c64b0f41616640c1eb3c60cd 100644 (file)
@@ -112,6 +112,8 @@ int handlenetworking(void)
                        runcommandwithstatus("/etc/rc.d/init.d/network start",
                                ctr[TR_PULLING_NETWORK_UP]);
                }
+       } else {
+               rename_nics();
        }
        create_udev();
        return 1;
@@ -202,7 +204,9 @@ int oktoleave(void)
                        return 0;
                }
        }
-       if (configtype == 0)
+       
+       strcpy(temp, ""); findkey(kv, "RED_TYPE", temp);
+       if ((configtype == 0) || (strcmp(temp, "STATIC") == 0))
        {
                strcpy(temp, ""); findkey(kv, "DNS1", temp);
                if (!(strlen(temp)))