diff --git a/wifibt/btgatt-server b/wifibt/btgatt-server new file mode 100755 index 000000000..ab084ac37 Binary files /dev/null and b/wifibt/btgatt-server differ diff --git a/wifibt/btmgmt b/wifibt/btmgmt new file mode 100755 index 000000000..580efb674 Binary files /dev/null and b/wifibt/btmgmt differ diff --git a/wifibt/rcS b/wifibt/rcS new file mode 100644 index 000000000..10d3bd4ee --- /dev/null +++ b/wifibt/rcS @@ -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 & +