mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Merge pull request #77 from dstewartgo/dstewartgo-all-radios-patch-1
Dstewartgo all radios patch 1
This commit is contained in:
@@ -148,7 +148,7 @@ case $1 in
|
|||||||
p|pair)
|
p|pair)
|
||||||
|
|
||||||
MAC=$(cat ${ACTIVE_RADIO} | jq -e -r .bluetooth.mac)
|
MAC=$(cat ${ACTIVE_RADIO} | jq -e -r .bluetooth.mac)
|
||||||
if [ $? -eq 0 ]; then
|
if [[ "{$MAC}" != "" ]]; then
|
||||||
PAIR_STATUS=$(bluetoothctl info "${MAC}" | grep "Paired:" | awk '{print $2}')
|
PAIR_STATUS=$(bluetoothctl info "${MAC}" | grep "Paired:" | awk '{print $2}')
|
||||||
if [ "${PAIR_STATUS}" == "yes" ]; then
|
if [ "${PAIR_STATUS}" == "yes" ]; then
|
||||||
echo "Device with MAC ${MAC} is already paired."
|
echo "Device with MAC ${MAC} is already paired."
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ case $1 in
|
|||||||
p|pair)
|
p|pair)
|
||||||
|
|
||||||
MAC=$(cat ${ACTIVE_RADIO} | jq -e -r .bluetooth.mac)
|
MAC=$(cat ${ACTIVE_RADIO} | jq -e -r .bluetooth.mac)
|
||||||
if [ $? -eq 0 ]; then
|
if [[ "{$MAC}" != "" ]]; then
|
||||||
PAIR_STATUS=$(bluetoothctl info "${MAC}" | grep "Paired:" | awk '{print $2}')
|
PAIR_STATUS=$(bluetoothctl info "${MAC}" | grep "Paired:" | awk '{print $2}')
|
||||||
if [ "${PAIR_STATUS}" == "yes" ]; then
|
if [ "${PAIR_STATUS}" == "yes" ]; then
|
||||||
echo "Device with MAC ${MAC} is already paired."
|
echo "Device with MAC ${MAC} is already paired."
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ case $1 in
|
|||||||
p|pair)
|
p|pair)
|
||||||
|
|
||||||
MAC=$(cat ${ACTIVE_RADIO} | jq -e -r .bluetooth.mac)
|
MAC=$(cat ${ACTIVE_RADIO} | jq -e -r .bluetooth.mac)
|
||||||
if [ $? -eq 0 ]; then
|
if [[ "{$MAC}" != "" ]]; then
|
||||||
PAIR_STATUS=$(bluetoothctl info "${MAC}" | grep "Paired:" | awk '{print $2}')
|
PAIR_STATUS=$(bluetoothctl info "${MAC}" | grep "Paired:" | awk '{print $2}')
|
||||||
if [ "${PAIR_STATUS}" == "yes" ]; then
|
if [ "${PAIR_STATUS}" == "yes" ]; then
|
||||||
echo "Device with MAC ${MAC} is already paired."
|
echo "Device with MAC ${MAC} is already paired."
|
||||||
|
|||||||
Reference in New Issue
Block a user