Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2021-03-20 13:04:10 +0200
committernl6720 <nl6720@gmail.com>2021-03-26 11:35:20 +0200
commit8a521d0bfaedf16b95c09b4837981c4b567b5118 (patch)
tree8083a04e3b7b62471ce0405ecb24a15985d4bda2 /configs
parent8cbc5483591a74fee2b566eff92e1423cbe9c0ad (diff)
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.
Diffstat (limited to 'configs')
-rw-r--r--configs/releng/airootfs/etc/systemd/network/20-ethernet.network8
-rw-r--r--configs/releng/airootfs/etc/systemd/network/20-wireless.network8
2 files changed, 10 insertions, 6 deletions
diff --git a/configs/releng/airootfs/etc/systemd/network/20-ethernet.network b/configs/releng/airootfs/etc/systemd/network/20-ethernet.network
index efa309c..4fce10c 100644
--- a/configs/releng/airootfs/etc/systemd/network/20-ethernet.network
+++ b/configs/releng/airootfs/etc/systemd/network/20-ethernet.network
@@ -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
diff --git a/configs/releng/airootfs/etc/systemd/network/20-wireless.network b/configs/releng/airootfs/etc/systemd/network/20-wireless.network
index bf9ab9d..73a6bbd 100644
--- a/configs/releng/airootfs/etc/systemd/network/20-wireless.network
+++ b/configs/releng/airootfs/etc/systemd/network/20-wireless.network
@@ -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