From 11b6051bc0b2cc29b25531c497b574ac66fb6577 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Wed, 4 Mar 2020 00:27:49 +0100 Subject: [PATCH] Fix typo in change-vmdebootstrap-default-dhcp.sh --- change-vmdebootstrap-default-dhcp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/change-vmdebootstrap-default-dhcp.sh b/change-vmdebootstrap-default-dhcp.sh index 384bb39..a5f3c38 100644 --- a/change-vmdebootstrap-default-dhcp.sh +++ b/change-vmdebootstrap-default-dhcp.sh @@ -6,7 +6,7 @@ debootstrap_network=/etc/systemd/network/99-dhcp.network if grep -q '^Name=\\*' "${debootstrap_network}"; then primary_nic=$(ls -1 /sys/class/net | grep -v lo |sort | head -1) - sed -i "s/^Name=e\\*/Name=${primary_nic})/" \ + sed -i "s/^Name=e\\*/Name=${primary_nic}/" \ "${debootstrap_network}" systemctl restart systemd-networkd.service echo "Changed systemd network configuration"