I tried to disable the wireless functions at boottime like Lekensteyn described here: How can I keep a wireless card's radio powered off by default?
But it keeps starting enabled after a reboot!
I added the command to /etc/rc.local by running
sudo nano /etc/rc.local
Used the arrow keys / page up/down keys to navigate to the line before exit 0
and add rfkill block wifi
, so that the file end like this:
# By default, this script does nothing
rfkill block wifi
# for debugging:
rfkill list > /tmp/wifi-state.txt
exit 0
Now in /tmp/wifi-state.txt
I can see that it was blocked right after the call in rc.local
But if I call
rfkill list
on the console, it shows that WiFi is enabled again:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
Additional info: I added this to disable bluetooth it works fine:
rfkill block bluetooth
and
sudo rfkill block wifi
works fine on the console