我试图找到一种在启动时在 Ubuntu 16.04 上禁用蓝牙的方法,我一直在网上绊倒的一种方法是使用 systemd
基本上
首先,停止服务:
须藤 systemctl 停止 bluetooth.service
然后禁用它:
须藤 systemctl 禁用 bluetooth.service
查看:
须藤 systemctl 状态 bluetooth.service
但是每次我重新启动它都会重新启动并且我找不到任何人在线抱怨 systemd disable 命令在我的情况下不起作用
即使在 ubuntu wiki 上,它也说它应该可以工作,我做错了什么?
https://wiki.ubuntu.com/SystemdForUpstartUsers
这是我运行这些命令时的输出
mohamed@mohamed-UX330UAK:~$ sudo systemctl stop bluetooth.service
[sudo] password for mohamed:
mohamed@mohamed-UX330UAK:~$ sudo systemctl disable bluetooth.service
Synchronizing state of bluetooth.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install disable bluetooth
insserv: warning: current start runlevel(s) (empty) of script `bluetooth' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) …Run Code Online (Sandbox Code Playgroud)