Home > 備忘録(Fedora) > bluetooth > bluetooth を起動時に off にする( 118 )
/etc/bluetooth/main.conf の [Policy] 部に「AutoEnable=false」と変更すればよいと別のホームページには書かれていますが、再起動すると bluetooth が起動してしまう場合がある。
手動で bluetooth を off にしたい場合には、次のようにすればよい。起動時に off にしたい場合には、これを実行する必要はない。
[root@server]# rfkill block bluetooth「rfkill block bluetooth」を「./.bash_profile」の最終行に追記する
cat ./.bash_profile
#追記
rfkill block bluetoothcat ./bluetooth.sh
#!/bin/sh
grep -e ^rfkill ./.bash_profile
if [ $? -ne 0 ];then
sed -e "$ a rfkill block bluetooth" -i ./.bash_profile
fi| Your IP Address |
| 216.73.216.111 |