28 Nisan 2019 Pazar

rfkill komutu

Giriş
Açıklaması şöyle.
rfkill is a small userspace tool to query the state of the rfkill switches, buttons and subsystem interfaces. Some devices come with a hard switch that lets you kill different types of RF radios: 802.11 / Bluetooth / NFC / UWB / WAN / WIMAX / FM. Some times these buttons may kill more than one RF type. The Linux kernel rfkill subsystem exposes these hardware buttons and lets userspace query its status and set its status through a /dev/rfkill. Given that at times some RF devices do not have hardware rfkill buttons rfkill the Linux kernel also exposes software rfkill capabilities that allows userspace to mimic a hardware rfkill event and turn on or off RF.
list seçeneği
Şöyle yaparız
rfkill list
Cihaz tipi olarak Wireless LAN,Bluetooth,WiMAX görebiliriz.
Örnek
Çıktı olarak şuna benzer bir çıktı alırız.
0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: yes
1: i2400m-usb:1-1.6:1.0: WiMAX
  Soft blocked: yes
  Hard blocked: no
Örnek
Şuna benzer bir çıktı alırız.
0: ideapad_wlan: Wireless LAN
  Soft blocked: no
  Hard blocked: no
1: ideapad_bluetooth: Bluetooth
  Soft blocked: no
  Hard blocked: no
2: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
unblock seçeneği
Şöyle yaparız
rfkill unblock all
Şöyle yaparız
rfkill unblock 0

Hiç yorum yok:

Yorum Gönder