Fix the dhcp state bootstrapping when rfkill is set #2.

This commit is contained in:
Nicholas J. Kain
2015-02-13 18:35:44 -05:00
parent a8af406307
commit 2e679ed491
3 changed files with 19 additions and 2 deletions

View File

@@ -502,7 +502,11 @@ int main(int argc, char *argv[])
switch (perform_ifup()) {
case 1: cs.ifsPrevState = IFS_UP;
case 0: break;
case -3: cs.rfkill_set = 1; cs.ifsPrevState = IFS_DOWN; break;
case -3:
cs.rfkill_set = 1;
cs.rfkill_at_init = 1;
cs.ifsPrevState = IFS_DOWN;
break;
default: suicide("failed to set the interface to up state");
}