Updated the wifi copying code.
This commit is contained in:
parent
4c3ffdd2e6
commit
bd9f77b122
@ -144,6 +144,11 @@ mount "${loopdev}p1" /mnt/boot
|
|||||||
# Things are mounted now, so set mounted to 0 (bash true)
|
# Things are mounted now, so set mounted to 0 (bash true)
|
||||||
mounted=0
|
mounted=0
|
||||||
wget "${url[$imageVersion]}" -O- | bsdtar -xpf - -C /mnt
|
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
|
# Create Mycroft service file
|
||||||
cat << 'EOF' > /mnt/etc/systemd/system/mycroft.service
|
cat << 'EOF' > /mnt/etc/systemd/system/mycroft.service
|
||||||
[Unit]
|
[Unit]
|
||||||
@ -223,9 +228,6 @@ EOF
|
|||||||
|
|
||||||
# Copy override files into place.
|
# Copy override files into place.
|
||||||
cp -rv ../files/etc/* /mnt/etc
|
cp -rv ../files/etc/* /mnt/etc
|
||||||
if [[ -n "${imageWifi}" ]]; then
|
|
||||||
cp -v "${imageWifi}" "/mnt/etc/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Exiting calls the cleanup function to unmount.
|
# Exiting calls the cleanup function to unmount.
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user