File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22set -e
33
44systemctl --user stop ble-peripheral
5- bluetoothctl power off & > /dev/null
5+ bluetoothctl power off > /dev/null 2>&1
66echo " Restarting bluez"
77# Configure sudo to allow running this without asking for a password
8- sudo $( realpath scripts/reset_bluez.sh)
8+ sudo " $( realpath scripts/reset_bluez.sh) "
99sleep 2
1010echo " Powering on controller"
11- bluetoothctl power on & > /dev/null
11+ bluetoothctl power on > /dev/null 2>&1
1212sleep 2
1313echo " Starting BLE service"
1414systemctl --user start ble-peripheral
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /usr/ bin/env bash
22
33notify-send -t 3600000 -a ProtocolStateFuzzer -h string:x-canonical-private-synchronous:my-notification ProtocolStateFuzzer ' Device reset needed'
4- read -p ' PLEASE RESET THE DEVICE AND THEN PRESS ENTER TO CONTINUE...'
4+ read -p -r ' PLEASE RESET THE DEVICE AND THEN PRESS ENTER TO CONTINUE...'
55notify-send -t 1 -a ProtocolStateFuzzer -h string:x-canonical-private-synchronous:my-notification ProtocolStateFuzzer ' Continuing'
66
Original file line number Diff line number Diff line change 1414 pip3 install -r requirements.txt
1515 # Install the BLESMPServer
1616 git clone https://github.com/apferscher/ble-learning.git
17- cd ble-learning
17+ cd ble-learning || exit
1818 git checkout febd774109c41a6635659b8847cc766e667841dd
19- cd libs/smp_server
19+ cd libs/smp_server || exit
2020 python3 setup.py install
2121 cd ../../..
2222 rm -rf ble-learning
You can’t perform that action at this time.
0 commit comments