Handle the case where the rfkill is set when ndhc is initializing.

This commit is contained in:
Nicholas J. Kain
2015-02-13 17:50:24 -05:00
parent 5b050ba498
commit 79a97131bc
2 changed files with 17 additions and 6 deletions

View File

@ -493,6 +493,7 @@ 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;
default: suicide("failed to set the interface to up state");
}