Fix typo in change-vmdebootstrap-default-dhcp.sh

This commit is contained in:
Jan Dittberner 2020-03-04 00:27:49 +01:00
parent a98f6e54e7
commit 11b6051bc0

View file

@ -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"