3 # BT Stack and device stop
4 /usr/etc/bluetooth/bt-stack-down.sh
8 # Remove BT files and setting
9 rm -rf /opt/data/bluetooth/.bt_paired
10 rm -rf /var/lib/bluetooth/*
12 KDB=`mount | grep libsqlfs_mount | awk '{print $3}'`
13 if [ -d $KDB/bluetooth ]
15 rm -rf $KDB/bluetooth/*
17 if [ -d $KDB/user/bluetooth ]
19 rm -rf $KDB/user/bluetooth/*
22 # Remove BT shared memory
23 list=`ipcs -m | awk '$1==0x0001000 {print $2}'`
28 ipcs -m | grep "0x00001000" | awk '{ print $2 }'