From 289a7f0dc71ecf9840535fcb7acc2911b6285e47 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Fri, 25 Jan 2013 13:56:04 +0100 Subject: [PATCH] meta-digi-del: btfilter, set mac address from kernel command line. The bootloader is passing the mac address in the kernel command line. The bluetooth startup script reads it and sets it. Signed-off-by: Alex Gonzalez --- .../recipes-connectivity/btfilter/files/S65bluez-bg.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meta-digi-del/recipes-connectivity/btfilter/files/S65bluez-bg.sh b/meta-digi-del/recipes-connectivity/btfilter/files/S65bluez-bg.sh index 3c8b93cdb..164d03c8f 100755 --- a/meta-digi-del/recipes-connectivity/btfilter/files/S65bluez-bg.sh +++ b/meta-digi-del/recipes-connectivity/btfilter/files/S65bluez-bg.sh @@ -35,11 +35,10 @@ ccardwmx28js_bt_init() { # value if the address has not been set. # - # TODO: Hardcoded until passed to kernel command line from U-Boot. - #BTADDR="$(nvram print module btaddr1 | sed 's,btaddr1=,,g')" - #if [ -z "${BTADDR}" -o "${BTADDR}" = "00:00:00:00:00:00" ]; then + BTADDR=`cat /proc/cmdline | sed 's/\s/\n/g' | awk '/btaddr1/ {print}' | sed 's/btaddr1=//g'` + if [ -z "${BTADDR}" -o "${BTADDR}" = "00:00:00:00:00:00" ]; then BTADDR="00:04:F3:FF:FF:BB" - #fi + fi # # We need to write the Bluetooth MAC address to ar3kbdaddr.pst in