From e77c4fe70b514f02cb0e5b596d4be679649d005b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 14 Apr 2026 06:07:55 +0200 Subject: [PATCH] modified receipe layout --- modules/wifi.mk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/wifi.mk diff --git a/modules/wifi.mk b/modules/wifi.mk new file mode 100644 index 0000000..efcb6fe --- /dev/null +++ b/modules/wifi.mk @@ -0,0 +1,26 @@ +define WIFICFG := +auto wlan0 +allow-hotplug wlan0 + +iface wlan0 inet dhcp + +endef + +ifdef wifi + ifdef wifipass + define WIFICFG += + wpa-ssid "${wifi}" + wpa-psk "${wifipass}" + endef + else + define WIFICFG += + wireless-ssid "${wifi}" + endef + endif + + _config: ${CFGROOT}/etc/network/interfaces.d/wifi +endif + +export WIFICFG +${CFGROOT}/etc/network/interfaces.d/wifi: _copy + printf '%s\n' "$${WIFICFG}" >"$@" -- 2.39.5