diff --git a/bootmac.rules b/bootmac-bluetooth.rules similarity index 77% rename from bootmac.rules rename to bootmac-bluetooth.rules index 20829b6d65ca1fc62dbf05b03483845e4eaecb6d..b474239af4dfd831ef06aff51d66d1e8f4707d2b 100644 --- a/bootmac.rules +++ b/bootmac-bluetooth.rules @@ -4,5 +4,4 @@ # SPDX-License-Identifier: GPL-3.0-or-later # -ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan0", RUN+="/usr/bin/bootmac" ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci0", RUN+="/usr/bin/bootmac" diff --git a/bootmac-wifi.rules b/bootmac-wifi.rules new file mode 100644 index 0000000000000000000000000000000000000000..421ee91f1be70a122ac9e3f083f79ba903646115 --- /dev/null +++ b/bootmac-wifi.rules @@ -0,0 +1,7 @@ +# +# Configure the MAC addresses of the WLAN and Bluetooth interfaces when they appear. +# Copyright (c) Dylan Van Assche (2022) +# SPDX-License-Identifier: GPL-3.0-or-later +# + +ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan0", RUN+="/usr/bin/bootmac"