Factor out waiting for a condition
Various wait_until_some_condition_is_met
constructs used here and
there should be factored out in the Tails shell library.
Perhaps just moving to systemd (#5821 (closed)) will solve most of these cases.
Parent Task: #6145
Related issues
- Related to #5821 (closed)
- Related to #7545
Original created by @tails on 6146 (Redmine)