summaryrefslogtreecommitdiff
path: root/aports/uds_passthru/uds_passthru.initd
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2022-05-28 12:44:37 +0200
committerPÁLI Gábor János <pali.gabor@gmail.com>2022-05-31 22:02:42 +0200
commit97c67abab07a57840f95d04fadbd13b3c0f5b328 (patch)
treecdd484a2af71b89ff7a75c5eb808e6e18f00801d /aports/uds_passthru/uds_passthru.initd
parenta6085330a18c8a257d2e185aab016c483335f86a (diff)
downloadfreebsd-wifibox-alpine-97c67abab07a57840f95d04fadbd13b3c0f5b328.zip
Incorporate `hostapd`.
The inclusion of `hostapd` [1] brings a lot of related changes because the build process have to extended to take the challenge. - Convert `wpa_passthru` to a more a generic services, called `uds_passthru` to deal with the control socket forwarding. It can also log the `socat` errors properly. - Make the `Makefile` more parametric therefore the virtual disk image can be customized better. - Default configurations are now moved fully to the guest's side. - Tweak the packages to be more flexible. - Document everything. [1] https://w1.fi/hostapd/
Diffstat (limited to 'aports/uds_passthru/uds_passthru.initd')
-rw-r--r--aports/uds_passthru/uds_passthru.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/aports/uds_passthru/uds_passthru.initd b/aports/uds_passthru/uds_passthru.initd
new file mode 100644
index 0000000..67f7698
--- /dev/null
+++ b/aports/uds_passthru/uds_passthru.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+
+supervisor=supervise-daemon
+name="Unix Domain Socket pass-through"
+description="Unix Domain Socket pass-through support"
+
+command=/sbin/uds_passthru
+command_background=true
+
+depend() {
+ need net
+ after firewall
+}