Fix typo in change-vmdebootstrap-default-dhcp.sh
This commit is contained in:
parent
a98f6e54e7
commit
11b6051bc0
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ debootstrap_network=/etc/systemd/network/99-dhcp.network
|
||||||
|
|
||||||
if grep -q '^Name=\\*' "${debootstrap_network}"; then
|
if grep -q '^Name=\\*' "${debootstrap_network}"; then
|
||||||
primary_nic=$(ls -1 /sys/class/net | grep -v lo |sort | head -1)
|
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}"
|
"${debootstrap_network}"
|
||||||
systemctl restart systemd-networkd.service
|
systemctl restart systemd-networkd.service
|
||||||
echo "Changed systemd network configuration"
|
echo "Changed systemd network configuration"
|
||||||
|
|
Loading…
Reference in a new issue