From: Paul Hänsch Date: Tue, 14 Apr 2026 04:07:55 +0000 (+0200) Subject: modified receipe layout X-Git-Url: http://git.plutz.net/?a=commitdiff_plain;h=e77c4fe70b514f02cb0e5b596d4be679649d005b;p=blast modified receipe layout --- 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}" >"$@"