From 372a6f9b2f1c3b7beb02f059437a50aa57c9d674 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 23 Jun 2020 21:10:17 +0200 Subject: Numerical prefix for systemd-networkd configuration Adding a numerical prefix ('20-') to the ethernet.network and wireless.network configuration files for systemd-networkd. This way overriding them can become more predictable e.g. by providing files with a '30-' prefix. Closes #13 --- .../releng/airootfs/etc/systemd/network/20-ethernet.network | 11 +++++++++++ .../releng/airootfs/etc/systemd/network/20-wireless.network | 11 +++++++++++ configs/releng/airootfs/etc/systemd/network/ethernet.network | 11 ----------- configs/releng/airootfs/etc/systemd/network/wireless.network | 11 ----------- 4 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 configs/releng/airootfs/etc/systemd/network/20-ethernet.network create mode 100644 configs/releng/airootfs/etc/systemd/network/20-wireless.network delete mode 100644 configs/releng/airootfs/etc/systemd/network/ethernet.network delete mode 100644 configs/releng/airootfs/etc/systemd/network/wireless.network (limited to 'configs/releng') diff --git a/configs/releng/airootfs/etc/systemd/network/20-ethernet.network b/configs/releng/airootfs/etc/systemd/network/20-ethernet.network new file mode 100644 index 0000000..5e9f0b7 --- /dev/null +++ b/configs/releng/airootfs/etc/systemd/network/20-ethernet.network @@ -0,0 +1,11 @@ +[Match] +Name=en* +Name=eth* + +[Network] +DHCP=ipv4 +IPv6PrivacyExtensions=yes +IPv6AcceptRA=false + +[DHCP] +RouteMetric=512 diff --git a/configs/releng/airootfs/etc/systemd/network/20-wireless.network b/configs/releng/airootfs/etc/systemd/network/20-wireless.network new file mode 100644 index 0000000..5a6da15 --- /dev/null +++ b/configs/releng/airootfs/etc/systemd/network/20-wireless.network @@ -0,0 +1,11 @@ +[Match] +Name=wlp* +Name=wlan* + +[Network] +DHCP=ipv4 +IPv6PrivacyExtensions=yes +IPv6AcceptRA=false + +[DHCP] +RouteMetric=1024 diff --git a/configs/releng/airootfs/etc/systemd/network/ethernet.network b/configs/releng/airootfs/etc/systemd/network/ethernet.network deleted file mode 100644 index 5e9f0b7..0000000 --- a/configs/releng/airootfs/etc/systemd/network/ethernet.network +++ /dev/null @@ -1,11 +0,0 @@ -[Match] -Name=en* -Name=eth* - -[Network] -DHCP=ipv4 -IPv6PrivacyExtensions=yes -IPv6AcceptRA=false - -[DHCP] -RouteMetric=512 diff --git a/configs/releng/airootfs/etc/systemd/network/wireless.network b/configs/releng/airootfs/etc/systemd/network/wireless.network deleted file mode 100644 index 5a6da15..0000000 --- a/configs/releng/airootfs/etc/systemd/network/wireless.network +++ /dev/null @@ -1,11 +0,0 @@ -[Match] -Name=wlp* -Name=wlan* - -[Network] -DHCP=ipv4 -IPv6PrivacyExtensions=yes -IPv6AcceptRA=false - -[DHCP] -RouteMetric=1024 -- cgit v1.2.3-70-g09d2