–> http://superuser.com/a/367472/337966
##vim /etc/NetworkManager/dispatcher.d/99-wlan
#!/bin/bash
if [ “$1” = “eth0” ]; then
case "$2" in
<html>up)</html>
nmcli radio wifi off
;;
<html>down)</html>
nmcli radio wifi on
;;
esac
fi
chmod +x /etc/NetworkManager/dispatcher.d/99-wlan##
puis
bien vérifier que le nom de linterface ethernet est effectivement “eth0” (ifconfig), sinon adapter le script