#the rfkill device number for wifi is inconsistent between platforms * is used
KERNEL!="rfkill*", GOTO="rfkill_nm_disable_enable_end"
ACTION!="change", GOTO="rfkill_nm_disable_enable_end"
#only switch once on wlan event to avoid doubling in the case of bluetooth event, related to rfkill switch
ENV{RFKILL_STATE}=="1" ENV{RFKILL_TYPE}=="wlan" RUN+="nm-disable-enable"
LABEL="rfkill_nm_disable_enable_end"
nm-disable-enable
===============
#!/bin/sh
service bluetooth restart
Workaround
==========
61-rfkill- nm-disable- enable. rules ======= ======= =====
=======
#the rfkill device number for wifi is inconsistent between platforms * is used nm_disable_ enable_ end" nm_disable_ enable_ end" STATE}= ="1" ENV{RFKILL_ TYPE}== "wlan" RUN+="nm- disable- enable" rfkill_ nm_disable_ enable_ end"
KERNEL!="rfkill*", GOTO="rfkill_
ACTION!="change", GOTO="rfkill_
#only switch once on wlan event to avoid doubling in the case of bluetooth event, related to rfkill switch
ENV{RFKILL_
LABEL="
nm-disable-enable
===============
#!/bin/sh
service bluetooth restart