#!/usr/bin/env bash sudo hciconfig hci0 piscan # sudo hciconfig -a # should contain PICSCAN flag