]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/setup/networking.c
IDS: Call helper script when red interface gets up
[ipfire-2.x.git] / src / setup / networking.c
index 169a40719b6da986104df2b4f89723f3fead528a..00dfc4b5a7d3a8aa02344d2966a60db6f7776007 100644 (file)
@@ -107,17 +107,18 @@ int handlenetworking(void)
                if (netaddresschange)
                {
                        runcommandwithstatus("/etc/rc.d/init.d/network stop",
-                               _("Networking"), _("Stopping network..."));
+                               _("Networking"), _("Stopping network..."), NULL);
 
                        rename_nics();
 
                        runcommandwithstatus("/etc/rc.d/init.d/network start",
-                               _("Networking"), _("Restarting network..."));
+                               _("Networking"), _("Restarting network..."), NULL);
+                       runcommandwithstatus("/etc/rc.d/init.d/unbound restart",
+                               _("Networking"), _("Restarting unbound..."), NULL);
                }
        } else {
                rename_nics();
        }
-       create_udev();
        return 1;
 }
 
@@ -214,7 +215,7 @@ int oktoleave(void)
                strcpy(temp, ""); findkey(kv, "DNS1", temp);
                if (!(strlen(temp)))
                {
-                       errorbox(_("Misssing DNS."));
+                       errorbox(_("Missing DNS."));
                        freekeyvalues(kv);
                        return 0;
                }
@@ -264,8 +265,7 @@ int firstmenu(void)
        x--;
        if (x < 0 || x > 4) x = 0;
        /* Format heading bit. */
-       snprintf(message, 1000, _("Current config: %s%s"), configtypenames[x],
-               networkrestart);
+       snprintf(message, 1000, _("Current config: %s\n\n%s"), configtypenames[x], networkrestart);
        rc = newtWinMenu(_("Network configuration menu"), message, 50, 5, 5, 6,
                        sections, &choice, _("OK"), _("Done"), NULL);
 
@@ -445,7 +445,7 @@ int changedrivers(void)
        }
        if (automode == 0)
                runcommandwithstatus("/etc/rc.d/init.d/network stop red blue orange",
-                       _("Networking"), _("Restarting non-local network..."));
+                       _("Networking"), _("Restarting non-local network..."), NULL);
 
        findkey(kv, "CONFIG_TYPE", temp); configtype = atol(temp);
        if (configtype == 1)