From bd9f77b1225749e842bd3b1e71744f4653e001f3 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 27 Dec 2020 12:43:27 -0500 Subject: [PATCH] Updated the wifi copying code. --- arcroft/build-arcroft.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arcroft/build-arcroft.sh b/arcroft/build-arcroft.sh index 251803e..7e01656 100755 --- a/arcroft/build-arcroft.sh +++ b/arcroft/build-arcroft.sh @@ -144,6 +144,11 @@ mount "${loopdev}p1" /mnt/boot # Things are mounted now, so set mounted to 0 (bash true) mounted=0 wget "${url[$imageVersion]}" -O- | bsdtar -xpf - -C /mnt +# Set up wifi +if [[ -n "${imageWifi}" ]]; then + mkdir -v "/mnt/etc/netctl" + cp -v "${imageWifi}" "/mnt/etc/netctl" +fi # Create Mycroft service file cat << 'EOF' > /mnt/etc/systemd/system/mycroft.service [Unit] @@ -223,9 +228,6 @@ EOF # Copy override files into place. cp -rv ../files/etc/* /mnt/etc -if [[ -n "${imageWifi}" ]]; then - cp -v "${imageWifi}" "/mnt/etc/" -fi # Exiting calls the cleanup function to unmount. exit 0