Files
2026-02-27 16:07:24 +01:00

14 lines
400 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export wifi_iface=$(ls /sys/class/net 2>/dev/null | grep -E "^(wl|wlan|wlp)" | head -1)
if [ -z "$wifi_iface" ]; then
echo "No WiFi interface found skipping configuration."
exit 0
fi
echo "Configuring WiFi on $wifi_iface"
envsubst < /cdrom/nocloud/user-data-wifi.config > /target/etc/netplan/99-wifi.yaml
chmod 600 /target/etc/netplan/99-wifi.yaml
# chroot /target netplan generate