Update path for device-tree (#343)

* Update path for device-tree

* Update config.json

* Update CHANGELOG.md
This commit is contained in:
Pascal Vizeli
2018-07-04 01:27:48 +02:00
committed by GitHub
parent f4db37bf88
commit bbbfaad304
3 changed files with 6 additions and 3 deletions

View File

@@ -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

View File

@@ -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/",

View File

@@ -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