add btgatt-server upto v1.1.22
This commit is contained in:
parent
fc6580f8e6
commit
fb308c854b
BIN
wifibt/btgatt-server
Executable file
BIN
wifibt/btgatt-server
Executable file
Binary file not shown.
BIN
wifibt/btmgmt
Executable file
BIN
wifibt/btmgmt
Executable file
Binary file not shown.
41
wifibt/rcS
Normal file
41
wifibt/rcS
Normal file
@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
# Start all init scripts in /etc/init.d
|
||||
# executing them in numerical order.
|
||||
#
|
||||
for i in /etc/init.d/S??* ;do
|
||||
|
||||
# Ignore dangling symlinks (if any).
|
||||
[ ! -f "$i" ] && continue
|
||||
|
||||
case "$i" in
|
||||
*.sh)
|
||||
# Source shell script for speed.
|
||||
(
|
||||
trap - INT QUIT TSTP
|
||||
set start
|
||||
. $i
|
||||
)
|
||||
;;
|
||||
*)
|
||||
# No sh extension, so fork subprocess.
|
||||
$i start
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
insmod /lib/modules/skw_sdio_lite.ko
|
||||
insmod /lib/modules/skwbt.ko
|
||||
insmod /lib/modules/swt6621s_wifi.ko
|
||||
/usr/bin/btmgmt -i hci0 power off
|
||||
/usr/bin/btmgmt -i hci0 bredr off
|
||||
/usr/bin/btmgmt -i hci0 le on
|
||||
/usr/bin/btmgmt -i hci0 pairable on
|
||||
/usr/bin/btmgmt -i hci0 connectable on
|
||||
/usr/bin/btmgmt -i hci0 advertising on
|
||||
/usr/bin/btmgmt -i hci0 discov on
|
||||
/usr/bin/btmgmt -i hci0 name "hyx-$(cat /sys/class/net/wlan0/address | tr -d ':')"
|
||||
/usr/bin/btmgmt -i hci0 power on
|
||||
/userdata/btgatt-server &
|
||||
|
||||
Loading…
Reference in New Issue
Block a user