Update configs/releng/airootfs/etc/systemd/network/20-{ethernet,wireless}.network

* Match the device type instead of the interface name.
* Replace DHCP section with DHCPv4/DHCPv6. systemd split the sections.
This commit is contained in:
nl6720 2021-03-20 13:04:10 +02:00
parent 8cbc548359
commit 8a521d0bfa
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369
2 changed files with 10 additions and 6 deletions

View File

@ -2,12 +2,14 @@
# SPDX-License-Identifier: GPL-3.0-or-later
[Match]
Name=en*
Name=eth*
Type=ether
[Network]
DHCP=yes
IPv6PrivacyExtensions=yes
[DHCP]
[DHCPv4]
RouteMetric=512
[DHCPv6]
RouteMetric=512

View File

@ -2,12 +2,14 @@
# SPDX-License-Identifier: GPL-3.0-or-later
[Match]
Name=wlp*
Name=wlan*
Type=wlan
[Network]
DHCP=yes
IPv6PrivacyExtensions=yes
[DHCP]
[DHCPv4]
RouteMetric=1024
[DHCPv6]
RouteMetric=1024