update e_player and bt

This commit is contained in:
hyx 2026-04-27 15:54:34 +08:00
parent 54fe12b755
commit 6976680043
5 changed files with 7 additions and 8 deletions

View File

@ -29,9 +29,7 @@ bring_hci_up()
start_bt() start_bt()
{ {
echo "[BT] Waiting 10 seconds before init..." echo "[BT] Init AIC8800..."
sleep 10
echo "[BT] Init AIC8800..."
insmod /lib/modules/5.10.44/kernel/drivers/net/wireless/aic8800/aic8800_btlpm/aic8800_btlpm.ko 2>/dev/null insmod /lib/modules/5.10.44/kernel/drivers/net/wireless/aic8800/aic8800_btlpm/aic8800_btlpm.ko 2>/dev/null
sleep 1 sleep 1
@ -57,11 +55,12 @@ start_bt()
hciconfig ${HCI_DEV} leadv 0 hciconfig ${HCI_DEV} leadv 0
sleep 1 sleep 1
# 动 bluetoothd # <EFBFBD><EFBFBD><EFBFBD>动 bluetoothd
"${BLUETOOTHD_BIN}" & "${BLUETOOTHD_BIN}" &
echo $! > "${BLUETOOTHD_PIDFILE}" echo $! > "${BLUETOOTHD_PIDFILE}"
echo "[BT] Waiting 10 seconds before init..."
# 启动 btgatt-server设置广播数据包含名称 sleep 10
# 启动 btgatt-server
"${BTGATT_BIN}" ${BTGATT_ARGS} >/dev/null 2>&1 & "${BTGATT_BIN}" ${BTGATT_ARGS} >/dev/null 2>&1 &
echo $! > "${BTGATT_PIDFILE}" echo $! > "${BTGATT_PIDFILE}"
@ -96,7 +95,7 @@ stop_bt()
case "$1" in case "$1" in
start) start)
start_bt start_bt >/dev/null 2>&1 &
;; ;;
stop) stop)
stop_bt stop_bt