wifi logic - meta-skynet - yocto meta-layer for skynet-os
HTML git clone https://git.drkhsh.at/meta-skynet.git
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit e40ec946d1a20510f7f3f010e1f8ed687a032aab
DIR parent 34b0f30337535d9cb93177024e669f8d32407fb1
HTML Author: drkhsh <me@drkhsh.at>
Date: Mon, 3 Nov 2025 21:34:24 +0100
wifi logic
Diffstat:
A recipes-connectivity/wpa-supplican… | 5 +++++
A recipes-connectivity/wpa-supplican… | 15 +++++++++++++++
A recipes-connectivity/wpa-supplican… | 22 ++++++++++++++++++++++
3 files changed, 42 insertions(+), 0 deletions(-)
---
DIR diff --git a/recipes-connectivity/wpa-supplicant/files/wpa_supplicant-wlan0.conf b/recipes-connectivity/wpa-supplicant/files/wpa_supplicant-wlan0.conf
@@ -0,0 +1,5 @@
+ctrl_interface=/var/run/wpa_supplicant
+ctrl_interface_group=0
+update_config=1
+country=AT
+
DIR diff --git a/recipes-connectivity/wpa-supplicant/files/wpa_supplicant@.service b/recipes-connectivity/wpa-supplicant/files/wpa_supplicant@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=WPA supplicant daemon (interface-specific version)
+After=sys-subsystem-net-devices-%I.device
+Requisite=sys-subsystem-net-devices-%I.device
+Before=network.target
+Wants=network.target
+ConditionPathExists=/data/config/wpa_supplicant
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
+
+[Install]
+WantedBy=multi-user.target
+
DIR diff --git a/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend b/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend
@@ -0,0 +1,22 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://wpa_supplicant-wlan0.conf \
+ file://wpa_supplicant@.service"
+
+SYSTEMD_AUTO_ENABLE = "enable"
+SYSTEMD_SERVICE:${PN}:remove = "wpa_supplicant.service"
+SYSTEMD_SERVICE:${PN}:append = " wpa_supplicant@wlan0.service"
+
+do_install:append () {
+ install -d ${D}${sysconfdir}/wpa_supplicant/
+ install -D -m 600 ${WORKDIR}/wpa_supplicant-wlan0.conf ${D}/data/config/wpa_supplicant
+ ln -sf /data/config/wpa_supplicant ${D}${sysconfdir}/wpa_supplicant/wpa_supplicant-wlan0.conf
+
+ install -d ${D}/${systemd_system_unitdir}
+ install -m 644 ${WORKDIR}/wpa_supplicant@.service ${D}/${systemd_system_unitdir}
+
+ install -d ${D}${sysconfdir}/systemd/system/multi-user.target.wants/
+ ln -s ${systemd_unitdir}/system/wpa_supplicant@.service ${D}${sysconfdir}/systemd/system/multi-user.target.wants/wpa_supplicant@wlan0.service
+}
+
+FILES:${PN} += " /data/config/wpa_supplicant"