⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bluetooth.init

📁 实现bluez蓝牙profile需要的库
💻 INIT
字号:
#!/bin/sh## Start/stop the Bluetooth daemons#set -ePATH=/sbin:/bin:/usr/sbin:/usr/binNAME=bluetoothDESC="Bluetooth subsystem"DAEMON_NAME=hcidHID2HCI_NAME=hid2hciDAEMON_EXEC="`which $DAEMON_NAME || true`"HID2HCI_EXEC="`which $HID2HCI_NAME || true`"DAEMON_ENABLE=trueHID2HCI_ENABLE=falseDAEMON_CONFIG="/etc/bluetooth/hcid.conf"[ -e /etc/default/bluetooth ] && . /etc/default/bluetoothcase "$1" in  start)	echo -n "Starting $DESC:"	if $DAEMON_ENABLE && [ -x "$DAEMON_EXEC" ] && [ -f "$DAEMON_CONFIG" ] ; then		$DAEMON_EXEC -s -f $DAEMON_CONFIG		echo -n " $DAEMON_NAME"	fi	if $HID2HCI_ENABLE && [ -x "$HID2HCI_EXEC" ] ; then		$HID2HCI_EXEC --tohci > /dev/null 2>&1 || true		echo -n " $HID2HCI_NAME"	fi	echo "."	;;  stop)	echo -n "Stopping $DESC:"	killall $DAEMON_NAME > /dev/null 2>&1 || true	echo -n " $DAEMON_NAME"	echo "."	;;  *)	N=/etc/init.d/$NAME	echo "Usage: $N {start|stop}" >&2	exit 1	;;esacexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -