Projektowanie stron internetowych

Domyślne wyłączenie usługi bluetooth podczas uruchomienia systemu ubuntu

Automatyczne wyłącznie usługi bluetooth podczas startu sytemu może okazać się niezwykle pomocne dla użytkowników laptopów.

Aby zblokować usługę przy starcie systemu musimy wy edytować plik /etc/rc.local musimy w nim dodać przed linią exit 0 linijkę rfkill block bluetooth

 

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
rfkill block bluetooth
exit 0

Aby odblokować usługę przy starcie zamienimy wstawioną linię na
rfkill unblock bluetooth