summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-04-05 16:53:56 +0200
committerThomas Haller <thaller@redhat.com>2019-04-08 10:18:57 +0200
commitc7993b437a1a7210b73df56be70da4cddb875852 (patch)
tree52e9f319f94d77d801cd3730d6cb7bc9000a8c5b
parentab593d3ad1778ea1aa26d03c01536c42705a66f0 (diff)
downloadNetworkManager-th/no-wifi-scan-rand-mac-address.tar.gz
contrib/rpm: install "/usr/lib/NetworkManager/conf.d/10-no-wifi-scan-rand-mac-address.conf"th/no-wifi-scan-rand-mac-address
On Ubuntu 18.04 (bionic), package "wpasupplicant" installs a file "/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf" with similar content and purpose. These drivers are known to work badly with NetworkManager changing the MAC address. There is no point in causing pain for users for something that they cannot fix (short of buying different hardware). Install the snippet with "NetworkManager-wifi" package. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833507 https://bugzilla.redhat.com/show_bug.cgi?id=1695696
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index d68f08a89f..dfcc4efec0 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -718,6 +718,12 @@ cp %{SOURCE4} %{buildroot}%{nmlibdir}/conf.d/
cp %{SOURCE5} %{buildroot}%{nmlibdir}/conf.d/
%endif
+%if %{with wifi}
+%if 0%{?fedora}
+cp examples/nm-conf.d/10-no-wifi-scan-rand-mac-address.conf %{buildroot}%{nmlibdir}/conf.d/
+%endif
+%endif
+
cp examples/dispatcher/10-ifcfg-rh-routes.sh %{buildroot}%{_sysconfdir}/%{name}/dispatcher.d/
ln -s ../no-wait.d/10-ifcfg-rh-routes.sh %{buildroot}%{_sysconfdir}/%{name}/dispatcher.d/pre-up.d/
ln -s ../10-ifcfg-rh-routes.sh %{buildroot}%{_sysconfdir}/%{name}/dispatcher.d/no-wait.d/
@@ -889,6 +895,9 @@ fi
%if %{with wifi}
%files wifi
%{nmplugindir}/libnm-device-plugin-wifi.so
+%if 0%{?fedora}
+%{nmlibdir}/conf.d/10-no-wifi-scan-rand-mac-address.conf
+%endif
%endif