setup: add ignore to all no nic assigned errors

This commit is contained in:
Arne Fitzenreiter
2019-08-06 09:17:41 +00:00
parent 6836e528e5
commit dc362263f4
2 changed files with 22 additions and 9 deletions

View File

@@ -10,4 +10,5 @@ etc/rc.d/init.d/networking/red.down/05-remove-dns-forwarders
etc/rc.d/init.d/partresize
etc/rc.d/init.d/unbound
etc/sysctl.conf
usr/sbin/setup
usr/sbin/unbound-dhcp-leases-bridge

View File

@@ -144,9 +144,13 @@ int oktoleave(void)
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")))
{
@@ -181,9 +185,13 @@ int oktoleave(void)
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")))
{
@@ -197,9 +205,13 @@ int oktoleave(void)
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")))
{