runcommandwithstatus("/etc/rc.d/init.d/network start",
_("Networking"), _("Restarting network..."), NULL);
+ runcommandwithstatus("/etc/rc.d/init.d/unbound restart",
+ _("Networking"), _("Restarting unbound..."), NULL);
}
} else {
rename_nics();
strcpy(temp, ""); findkey(kv, "GREEN_DEV", temp);
if (!(strlen(temp)))
{
- errorbox(_("No GREEN interface assigned."));
- freekeyvalues(kv);
- return 0;
+ rc = newtWinChoice(_("Error"), _("OK"), _("Ignore"),
+ _("No GREEN interface assigned."));
+ if (rc == 0 || rc == 1)
+ {
+ freekeyvalues(kv);
+ return 0;
+ }
}
if (!(interfacecheck(kv, "GREEN")))
{
strcpy(temp, ""); findkey(kv, "ORANGE_DEV", temp);
if (!(strlen(temp)))
{
- errorbox(_("No ORANGE interface assigned."));
- freekeyvalues(kv);
- return 0;
+ rc = newtWinChoice(_("Error"), _("OK"), _("Ignore"),
+ _("No ORANGE interface assigned."));
+ if (rc == 0 || rc == 1)
+ {
+ freekeyvalues(kv);
+ return 0;
+ }
}
if (!(interfacecheck(kv, "ORANGE")))
{
strcpy(temp, ""); findkey(kv, "BLUE_DEV", temp);
if (!(strlen(temp)))
{
- errorbox(_("No BLUE interface assigned."));
- freekeyvalues(kv);
- return 0;
+ rc = newtWinChoice(_("Error"), _("OK"), _("Ignore"),
+ _("No BLUE interface assigned."));
+ if (rc == 0 || rc == 1)
+ {
+ freekeyvalues(kv);
+ return 0;
+ }
}
if (!(interfacecheck(kv, "BLUE")))
{
strcpy(temp, ""); findkey(kv, "DNS1", temp);
if (!(strlen(temp)))
{
- errorbox(_("Misssing DNS."));
+ errorbox(_("Missing DNS."));
freekeyvalues(kv);
return 0;
}