diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-10-23 14:31:21 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-10-23 14:31:21 +0800 |
commit | 02fa24c7e2f5e587ffda13b82cfb242b4cbd9949 (patch) | |
tree | d9e5f12f869a93ccf0ab434807898474f6d111c8 | |
parent | cde8d60ea26f7b3cea5305fd6b606c4795261820 (diff) |
added bleutooth.service and reload-btusb.service
-rw-r--r-- | bluetooth.service | 13 | ||||
-rw-r--r-- | reload-btusb.service | 10 |
2 files changed, 23 insertions, 0 deletions
diff --git a/bluetooth.service b/bluetooth.service new file mode 100644 index 0000000..946e720 --- /dev/null +++ b/bluetooth.service @@ -0,0 +1,13 @@ +[Unit] +Description=Bluetooth +Before=shutdown.target +After=openrc-init.service + +[Service] +Type=oneshot +RemainAfterExit=no +ExecStart=/sbin/udevadm trigger --subsystem-match=bluetooth --action=add +ExecStart=/usr/bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all + +[Install] +WantedBy=multi-user.target diff --git a/reload-btusb.service b/reload-btusb.service new file mode 100644 index 0000000..3f9c8ce --- /dev/null +++ b/reload-btusb.service @@ -0,0 +1,10 @@ +[Unit] +Description=Reload the btusb Module +Before=bluetooth.service + +[Service] +Type=oneshot +ExecStart=-/sbin/modprobe -r btusb ; -/sbin/modprobe btusb + +[Install] +WantedBy=multi-user.target |