mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-01 11:15:38 +01:00
Update path for device-tree (#343)
* Update path for device-tree * Update config.json * Update CHANGELOG.md
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## 2.2
|
||||
- Fix device-tree path for Supervisor 113
|
||||
|
||||
## 2.1
|
||||
- Support new way to read `serial-number` from device-tree
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Bluetooth BCM43xx",
|
||||
"version": "2.1",
|
||||
"version": "2.2",
|
||||
"slug": "bluetooth_bcm43xx",
|
||||
"description": "Activate Bluetooth for Broadcom 43xx chips",
|
||||
"url": "https://home-assistant.io/addons/bluetooth_bcm43xx/",
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
set -e
|
||||
|
||||
# Read serial number
|
||||
if [ -e /proc/device-tree/serial-number ]; then
|
||||
SERIAL="$(cut -c9- /proc/device-tree/serial-number)"
|
||||
if [ -e /device-tree/serial-number ]; then
|
||||
SERIAL="$(cut -c9- /device-tree/serial-number)"
|
||||
else
|
||||
SERIAL="$(grep Serial /proc/cpuinfo | cut -c19-)"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user