]> git.pld-linux.org Git - packages/bluez.git/commitdiff
- upstart scripts
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 11 Sep 2011 20:01:34 +0000 (20:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bluetooth.upstart -> 1.1
    dund.upstart -> 1.1
    pand.upstart -> 1.1
    rfcomm.upstart -> 1.1

bluetooth.upstart [new file with mode: 0644]
dund.upstart [new file with mode: 0644]
pand.upstart [new file with mode: 0644]
rfcomm.upstart [new file with mode: 0644]

diff --git a/bluetooth.upstart b/bluetooth.upstart
new file mode 100644 (file)
index 0000000..080c781
--- /dev/null
@@ -0,0 +1,8 @@
+description "Bluetooth subsystem starting and stopping. Turn HID adapters into Bluetooth ones."
+
+start on pld.sysinit-done
+stop on pld.shutdown-started
+
+script
+       /sbin/udevadm trigger --subsystem-match=bluetooth --action=add
+end script
diff --git a/dund.upstart b/dund.upstart
new file mode 100644 (file)
index 0000000..3addb40
--- /dev/null
@@ -0,0 +1,10 @@
+description "Bluetooth Dial-Up-Networking Daemon. Provides PPP over RFCOMM services."
+
+start on pld.sysinit-done
+stop on pld.shutdown-started
+
+script
+       [ -f /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
+
+       /usr/bin/dund ${DUND_OPTIONS}
+end script
diff --git a/pand.upstart b/pand.upstart
new file mode 100644 (file)
index 0000000..87c5117
--- /dev/null
@@ -0,0 +1,10 @@
+description "Bluetooth Personal Area Networking Daemon. Provides network services over Bluetooth."
+
+start on pld.sysinit-done
+stop on pld.shutdown-started
+
+script
+       [ -f /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
+
+       /usr/bin/pand ${PAND_OPTIONS}
+end script
diff --git a/rfcomm.upstart b/rfcomm.upstart
new file mode 100644 (file)
index 0000000..1dee983
--- /dev/null
@@ -0,0 +1,12 @@
+description "Bluetooth RFCOMM setup. Sets up serial devices over Bluetooth."
+
+start on pld.sysinit-done
+stop on pld.shutdown-started
+
+script
+       /usr/bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all
+end script
+
+post-stop script
+       /usr/bin/rfcomm release all
+end script
This page took 0.179979 seconds and 4 git commands to generate.