You are not logged in.

#1 2014-09-02 20:32:47

archie84
Member
Registered: 2014-08-17
Posts: 14

Block wifi and bluetooth at startup - rfkill + systemd

Hi,
I want to disable bluetooth and wifi at startup via rfkill and sysetmd, but I'm unable to do so.

$ systemctl list-units | grep rfkill
systemd-rfkill@rfkill0.service    loaded active exited    Load/Save RF Kill Switch Status of rfkill0
systemd-rfkill@rfkill1.service    loaded active exited    Load/Save RF Kill Switch Status of rfkill1

First of all, I can't get rid of these two services, after stopping them and disabling, they reappear at the next reboot (I'm not even sure if I am supposed to disable them)

Anyway, I tried:

systemctl enable rfkill-block@all

but it doesn't work.

I also tried to enable a custom service file, with no results:

$ cat /etc/systemd/system/rfkill-block-all.service 
[Unit]
Description=rfkill block all

[Service]
Type=oneshot
ExecStart=/usr/sbin/rfkill block all
ExecStop=
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Does anyone know the proper way to disable bluetooth and wifi at startup through systemd and rfkill?

Offline

Board footer

Powered by FluxBB