From 7de811f115709d89e354dbcc8a98e51422a7ce85 Mon Sep 17 00:00:00 2001 From: Gunnar Wolf Date: Sat, 15 Aug 2020 00:15:43 -0500 Subject: [PATCH] Add a configuration file for wireless networking --- raspi_master.yaml | 1 + rootfs/etc/network/interfaces.d/wlan0 | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 rootfs/etc/network/interfaces.d/wlan0 diff --git a/raspi_master.yaml b/raspi_master.yaml index c35be79..1c670e9 100644 --- a/raspi_master.yaml +++ b/raspi_master.yaml @@ -89,6 +89,7 @@ steps: install -m 644 -o root -g root rootfs/etc/fstab "${ROOT?}/etc/fstab" install -m 644 -o root -g root rootfs/etc/network/interfaces.d/eth0 "${ROOT?}/etc/network/interfaces.d/eth0" + install -m 600 -o root -g root rootfs/etc/network/interfaces.d/wlan0 "${ROOT?}/etc/network/interfaces.d/wlan0" install -m 755 -o root -g root rootfs/usr/local/sbin/rpi-set-sysconf "${ROOT?}/usr/local/sbin/rpi-set-sysconf" install -m 644 -o root -g root rootfs/etc/systemd/system/rpi-set-sysconf.service "${ROOT?}/etc/systemd/system/" diff --git a/rootfs/etc/network/interfaces.d/wlan0 b/rootfs/etc/network/interfaces.d/wlan0 new file mode 100644 index 0000000..1c5a82b --- /dev/null +++ b/rootfs/etc/network/interfaces.d/wlan0 @@ -0,0 +1,7 @@ +# To enable wireless networking, uncomment the following lines and –naturally– +# replace with your network's details. +# +# allow-hotplug wlan0 +# iface wlan0 inet dhcp +# wpa-ssid my-network-ssid +# wpa-psk s3kr3t_P4ss