meta-digi-dey: btfilter: ccimx6sbc: Add bluez init script.
This is the same as for the ccimx6adpt. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
parent
f6febc28a0
commit
7477b7d446
|
|
@ -36,7 +36,7 @@ bt_init() {
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
BT_PWR_GPIO_NR="21"
|
BT_PWR_GPIO_NR="21"
|
||||||
elif [ "${MACHINENAME}" = "ccimx6adpt" ]; then
|
elif [ "${MACHINENAME}" = "ccimx6adpt" -o "${MACHINENAME}" = "ccimx6sbc" ]; then
|
||||||
BT_PWR_GPIO_NR="244"
|
BT_PWR_GPIO_NR="244"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -130,7 +130,7 @@ echo "Starting bluetooth services."
|
||||||
|
|
||||||
# Initialize driver for 'ccardimx28js'
|
# Initialize driver for 'ccardimx28js'
|
||||||
MACHINENAME="$(cat /proc/device-tree/digi,machine,name 2>/dev/null || cat /sys/kernel/machine/name)"
|
MACHINENAME="$(cat /proc/device-tree/digi,machine,name 2>/dev/null || cat /sys/kernel/machine/name)"
|
||||||
[ "${MACHINENAME}" = "ccardimx28" -o "${MACHINENAME}" = "ccimx6adpt" ] && bt_init
|
[ "${MACHINENAME}" = "ccardimx28" -o "${MACHINENAME}" = "ccimx6adpt" -o "${MACHINENAME}" = "ccimx6sbc" ] && bt_init
|
||||||
|
|
||||||
# Run bluetooth daemon
|
# Run bluetooth daemon
|
||||||
if hciconfig hci0 up && bluetoothd; then
|
if hciconfig hci0 up && bluetoothd; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue