Skip to content

Commit

Permalink
Add prematurely setting hci0 down
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE authored Feb 20, 2020
1 parent 32b60eb commit d0d58a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bluetooth/bluetooth-udev
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ add)
if [[ -z "$BLUETOOTH_SCRIPTS" ]]; then
python /usr/src/bluetooth-scripts/bluetooth-connect
fi
if [[ -a /usr/src/is_discoverable ]]; then
hciconfig hci0 down
fi
;;
remove)
mplayer -volume $CONNECTION_NOTIFY_VOLUME /usr/src/sounds/disconnect.mp3 -really-quiet > /dev/null 2>&1
Expand Down

0 comments on commit d0d58a9

Please sign in to comment.