{"id":18446838,"url":"https://github.com/nmeum/ifupdown-ng-waitif","last_synced_at":"2026-02-06T06:02:46.047Z","repository":{"id":65612294,"uuid":"497576352","full_name":"nmeum/ifupdown-ng-waitif","owner":"nmeum","description":"An ifupdown-ng executor which blocks until the interface is actually running","archived":false,"fork":false,"pushed_at":"2022-09-10T13:38:12.000Z","size":46,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-12T00:18:30.165Z","etag":null,"topics":["ifupdown-ng","libmnl","netlink"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nmeum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-29T11:54:04.000Z","updated_at":"2023-04-03T14:19:51.000Z","dependencies_parsed_at":"2023-01-31T18:30:22.404Z","dependency_job_id":null,"html_url":"https://github.com/nmeum/ifupdown-ng-waitif","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nmeum/ifupdown-ng-waitif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmeum%2Fifupdown-ng-waitif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmeum%2Fifupdown-ng-waitif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmeum%2Fifupdown-ng-waitif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmeum%2Fifupdown-ng-waitif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nmeum","download_url":"https://codeload.github.com/nmeum/ifupdown-ng-waitif/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmeum%2Fifupdown-ng-waitif/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29153144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ifupdown-ng","libmnl","netlink"],"created_at":"2024-11-06T07:10:56.442Z","updated_at":"2026-02-06T06:02:46.010Z","avatar_url":"https://github.com/nmeum.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"## Status\n\nThis software integrates [ifupdown-ng][ifupdown-ng github] with [netlink][netlink wikipedia] link state detection via [libmnl][libmnl web].\nI use this software myself and I am presently not aware of any bugs with the implemented functionality.\n\n## Background\n\n[ifupdown-ng][ifupdown-ng github] is a re-implementation of the `ifup` and `ifdown` commands provided by Debian and BusyBox.\nThese commands configure network interfaces according to the `/etc/network/interfaces` configuration file.\nInterface configuration is split into multiple [phases][ifupdown-ng phases].\nFor each phase, different [executors][ifupdown-ng executor] are run.\nFor example, a DHCP client may be run as an executor in the `up` phase.\nUnfortunately, ifupdown-ng doesn't check the interface link state before running executors of the `up` phase.\nAs such, executors which require the link to be up (e.g. the DHCP executor) usually retry requests in a configured interval until the requests succeed.\nAs it turns out, choosing an appropriate interval is [difficult][alpine #13795].\nInspired by [bncm-waitif][bncm-waitif web], this repository provides an executor which blocks until the interface state is changed to running by the Linux [netlink subsystem][netlink wikipedia].\n\n## Installation\n\nIn order to build this software, install the following dependencies:\n\n* [libmnl][libmnl web]\n* [GNU make][make web]\n\nAfterwards, run the following commands:\n\n\t$ make\n\t# make install\n\nRefer to the `GNUmakefile` regarding available configuration variables.\n\n## Usage\n\nIn order to use this executor, add a `use waitif` declaration to your interface configuration in `/etc/network/interfaces`.\nFor example:\n\n\tiface wlan0\n\t\tuse waitif\n\t\tuse dhcp\n\nIn this case, the `waitif` executor will block in the `up` phase until the interface switched to the `IFF_RUNNING` state.\nAfterwards, the `dhcp` executor is run and it will hopefully be able to retrieve a lease immediately.\nBy default, the `waitif` executor will wait for up to 30 seconds for the interface to come up.\nIf the interface doesn't change to `IFF_RUNNING` within this timespan, then the `waitif` executor exits with `EXIT_FAILURE`.\nIt is possible to configure a different timeout value using `waitif-timeout`, for example:\n\n\tiface wlan0\n\t\twaitif-timeout 10\n\t\tuse waitif\n\t\tuse dhcp\n\nThe `waitif-timeout` keyword specifies a timeout in seconds, the timeout can be set to zero to wait indefinitely.\n\n## Caveats\n\nifupdown-ng currently does not stop executing executors of a given phase if one of them fails.\nAs such, if the `waitif` up executor fails (e.g. due to a timeout) ifupdown-ng will still attempt to retrieve a DCHP lease.\nSee: [ifupdown-ng#179][ifupdown-ng #179].\n\n## License\n\nThis program is free software: you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published by the\nFree Software Foundation, either version 3 of the License, or (at your\noption) any later version.\n\nThis program is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General\nPublic License for more details.\n\nYou should have received a copy of the GNU General Public License along\nwith this program. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n\n[ifupdown-ng github]: https://github.com/ifupdown-ng/ifupdown-ng\n[ifupdown-ng executor]: https://github.com/ifupdown-ng/ifupdown-ng/blob/ce6954d62879c3532697a5b0cd800a506fae9da6/doc/ifupdown-executor.scd\n[ifupdown-ng phases]: https://github.com/ifupdown-ng/ifupdown-ng/blob/ce6954d62879c3532697a5b0cd800a506fae9da6/doc/ifupdown-executor.scd#phases\n[alpine #13795]: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13795\n[bncm-waitif web]: https://skarnet.org/software/bcnm/bcnm-waitif.html\n[netlink wikipedia]: https://en.wikipedia.org/wiki/Netlink\n[libmnl web]: https://netfilter.org/projects/libmnl/\n[make web]: https://github.com/rocky/remake\n[ifupdown-ng #179]: https://github.com/ifupdown-ng/ifupdown-ng/pull/179\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmeum%2Fifupdown-ng-waitif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmeum%2Fifupdown-ng-waitif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmeum%2Fifupdown-ng-waitif/lists"}