Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/rdk/getDeviceDetails.sh
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ getDeviceSerialNumber()
getBluetoothMac()
{
bluetooth_mac="00:00:00:00:00:00"
if [ "$BLUETOOTH_ENABLED" = "true" ]; then
bluetooth_mac=$(getDeviceBluetoothMac)
if [ -f /lib/rdk/readBTAddress-vendor.sh ]; then
bluetooth_mac=`sh /lib/rdk/readBTAddress-vendor.sh`
else
bluetooth_mac=`sh /lib/rdk/readBTAddress-generic.sh`
fi

echo "$bluetooth_mac"
Expand Down
31 changes: 31 additions & 0 deletions lib/rdk/readBTAddress-generic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh
##############################################################################
# If not stated otherwise in this file or this component's LICENSE file the

Check failure on line 3 in lib/rdk/readBTAddress-generic.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'lib/rdk/readBTAddress-generic.sh' (Match: rdkcentral/Thunder/R1, 15 lines, url: https://github.com/rdkcentral/Thunder/archive/refs/tags/R1.tar.gz, file: Tools/ProxyStubGenerator/Interface.py)
# following copyright and licenses apply:
#
# Copyright 2020 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");

Check failure on line 8 in lib/rdk/readBTAddress-generic.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'lib/rdk/readBTAddress-generic.sh' (Match: rigetti/pyquil/0, 11 lines, url: https://github.com/rigetti/pyquil/archive/refs/tags/quilt-demo-0.tar.gz, file: pyquil/api/_qam.py)
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################
# Purpose: This script is used to fetch device Bluetooth Mac information
# Scope: RDK devices.
# Usage: This script is triggered by a systemd service and shell scripts.

. /etc/include.properties
. /etc/device.properties
. $RDK_PATH/utils.sh

if [ "$BLUETOOTH_ENABLED" = "true" ]; then
bluetooth_mac=$(getDeviceBluetoothMac)
fi
echo $bluetooth_mac
Loading