wait-online: support $REQUIRED_OPER_STATE_FOR_ONLINE= in state file
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Mar 2019 14:46:33 +0000 (23:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Mar 2019 05:29:03 +0000 (14:29 +0900)
commitf023184e6dfbb2c238643e596a3a4b4a22dbf484
treee82560cb6ac0343b05b129dc0f651203e17d2265
parent22eab27caa87088f59a8c0070958bb2a305dea6e
wait-online: support $REQUIRED_OPER_STATE_FOR_ONLINE= in state file

This also make wait-online optionally take operstate in -i option,
and adds '--operstate' option to wait-online which also takes operstate.

Also, this contains huge refactoring for wait-online.
src/network/wait-online/link.c
src/network/wait-online/link.h
src/network/wait-online/manager.c
src/network/wait-online/manager.h
src/network/wait-online/wait-online.c