rfkill - the beginning of a beautiful friendship 

1. If you want to block/unblock a single interface you have to specify it with a number:


rfkill unblock 1


And here comes a systemd unit which enables an USB Wifi dongle only:


/etc/systemd/system/rfkill-unblock-wifi.service
[Unit]
Description=RFKill-Unblock WiFi Devices
After=sys-subsystem-net-devices-wlan1.device
BindsTo=sys-subsystem-net-devices-wlan1.device


[Service]
Type=oneshot
ExecStart=/usr/sbin/rfkill unblock 1
ExecStop=
RemainAfterExit=no

[Install]
WantedBy=multi-user.target

[ hozzászólás ] ( 4 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 278 )

<< <Előző | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Következő> >>

 
számláló