Skip to content
Snippets Groups Projects
Commit 9a224961 authored by Andre Moreira Magalhaes's avatar Andre Moreira Magalhaes
Browse files

Remove check-setup.sh

Given this test is manual, lets reuse the test from
https://gitlab.apertis.org/tests/bluez-setup instead and update
instructions accordingly.
parent 64e9748a
No related branches found
No related tags found
No related merge requests found
Pipeline #390 failed
#!/bin/sh
ps uax | grep -v grep | grep -q bluetoothd
if [ $? -eq 1 ]; then echo "bluetoothd is not running" && exit 1; fi
ps uax | grep -v grep | grep -q ofonod
if [ $? -eq 1 ]; then echo "ofonod is not running" && exit 1; fi
ps uax | grep -v grep | grep -q connmand
if [ $? -eq 1 ]; then echo "connmand is not running" && exit 1; fi
hciconfig -a
if [ ! $? -eq 0 ]; then echo "hciconfig -a failed" && exit 1; fi
sudo hciconfig hci0 reset
if [ ! $? -eq 0 ]; then echo "hciconfig hci0 reset failed" && exit 1; fi
sudo hciconfig hci0 down
if [ ! $? -eq 0 ]; then echo "hciconfig hci0 down failed" && exit 1; fi
sudo hciconfig hci0 up
if [ ! $? -eq 0 ]; then echo "hciconfig hci0 up failed" && exit 1; fi
sudo hciconfig hci0 piscan
if [ ! $? -eq 0 ]; then echo "hciconfig hci0 piscan failed" && exit 1; fi
sudo hciconfig hci0 pscan
if [ ! $? -eq 0 ]; then echo "hciconfig hci0 pscan failed" && exit 1; fi
echo "Put some devices around in discoverable mode and press ENTER"
read enter
hcitool scan
echo ""
echo "Check if the devices you enabled are in the list above"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment