hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
 
case "$1" in
    start)
 
    echo "start rtl8723ds bluetooth server"
    bt_pcba_test &
    sleep 7
 
    echo "start rtl8723ds bluetooth hciconfig"
    hciconfig hci0 up &
 
    echo "start rtl8723ds bluetooth wifi config"
    /usr/libexec/bluetooth/bluetoothd -C -E -d -n &
    sleep 2
    ble_wificonfig &
 
        ;;
    stop)
        echo -n "Stopping rtl8723ds bluez5_utils bluetooth server & app"
        killall ble_wificonfig
        sleep 1
        killall bluetoothd
        sleep 1
        if busybox cat /sys/class/rkwifi/chip | grep RTL8723DS; then
        killall rtk_hciattach
        fi
        if busybox cat /sys/class/rkwifi/chip | grep AP6255; then
        killall brcm_patchram_plus1
        fi
 
        ;;
    *)
        echo "Usage: $0 {start|stop}"
        exit 1
esac
 
exit $?