Browse Source

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

master
Jan Dittberner 2 years ago
parent
commit
11b6051bc0
  1. 2
      change-vmdebootstrap-default-dhcp.sh

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

Loading…
Cancel
Save