aports

Custom Alpine Linux aports

git clone https://git.8pit.net/aports.git

 1#!/sbin/openrc-run
 2
 3supervisor=supervise-daemon
 4
 5# The wpa_cli services depends on wpa_supplicant. If wpa_supplicant is
 6# restarted, so is wpa_cli. Unfortunately, wpa_supplicant creates the
 7# socket, used for communication with wpa_cli, rather late thereby
 8# causing wpa_cli to be restarted before it is created and thus fail.
 9# By default supervise-daemon will restart wpa_cli immediately, often
10# resulting in all restart attempts to be exhausted before the socket is
11# created. To work around this issue, add a respawn-delay to wpa_cli.
12supervise_daemon_args="--respawn-delay 3"
13
14name="WPA Command Line Client"
15description="Text-based frontend for interacting with WPA Supplicant"
16
17command=/sbin/wpa_cli
18command_args="${WPACLI_OPTS} >/dev/null"
19
20depend() {
21	need wpa_supplicant
22}