diff options
author | Hyuk Lee <hyuk0512.lee@samsung.com> | 2018-01-22 13:14:56 +0900 |
---|---|---|
committer | Hyuk Lee <hyuk0512.lee@samsung.com> | 2018-01-22 13:52:26 +0900 |
commit | 45d6faac68cfc9fe682fa23b6c5bbd86b252aa2b (patch) | |
tree | 400175faced3f78fea6b2c148f5265e685ef2bac | |
parent | 21578093831ff11794558da532f185e6613e1b27 (diff) | |
download | bluetooth-firmware-marvell-45d6faac68cfc9fe682fa23b6c5bbd86b252aa2b.tar.gz bluetooth-firmware-marvell-45d6faac68cfc9fe682fa23b6c5bbd86b252aa2b.tar.bz2 bluetooth-firmware-marvell-45d6faac68cfc9fe682fa23b6c5bbd86b252aa2b.zip |
Modify the script value for Artik 530submit/tizen_4.0/20180122.051823accepted/tizen/4.0/unified/20180131.125401tizen_4.0accepted/tizen_4.0_unified
Change-Id: I16fb26da0eceabc9365b23571c47994b0a3b5883
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
-rwxr-xr-x | scripts/bt-dev-end.sh | 2 | ||||
-rwxr-xr-x | scripts/bt-dev-start.sh | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/scripts/bt-dev-end.sh b/scripts/bt-dev-end.sh index 69aea9a..20bc0ac 100755 --- a/scripts/bt-dev-end.sh +++ b/scripts/bt-dev-end.sh @@ -4,6 +4,4 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin # Device down /usr/bin/hciconfig hci0 down -# Turn off Bluetooth Chip -/usr/sbin/rfkill block bluetooth diff --git a/scripts/bt-dev-start.sh b/scripts/bt-dev-start.sh index 9bb1c02..00e9e3d 100755 --- a/scripts/bt-dev-start.sh +++ b/scripts/bt-dev-start.sh @@ -5,13 +5,13 @@ # SETBD=/usr/etc/bluetooth/bt-set-addr.sh -RFKILL=/usr/sbin/rfkill GREP=/usr/bin/pgrep HCI_CONFIG=/usr/bin/hciconfig CP="/bin/cp" #KERNEL_DIR=`uname -a | awk '{print($3)}'` -#DRV_DIR=/lib/modules/$KERNEL_DIR/kernel -BT_DRIVER=/usr/lib/modules/4.4.19-19.3-artik530-raptor/kernel/drivers/net/wireless/sd8977/mbt_src/bt8xxx.ko +KERNEL_DIR=`uname -a` +DATA=`echo $KERNEL_DIR | cut -d' ' -f3` # output is 2 +BT_DRIVER=/usr/lib/modules/$DATA/kernel/drivers/net/wireless/sd8977/mbt_src/bt8xxx.ko echo "MARVELL89XX BT START" @@ -21,9 +21,6 @@ echo "Insert BT driver module" echo "create bd address and write bd address via /sys/module/bt8xxx/parameters/bt_mac" ${SETBD} -echo "Unblock bluetooth RFKILL" -${RFKILL} unblock bluetooth - echo "Power On" echo 2 > /sys/devices/platform/sd8x-rfkill/pwr_ctrl @@ -36,7 +33,6 @@ do if [ $i -eq $TIMEOUT ] then echo "time expired happen $i" - ${RFKILL} block bluetooth exit 1 fi |