From: Elan Ruusamäe Date: Sun, 11 Sep 2011 20:01:34 +0000 (+0000) Subject: - upstart scripts X-Git-Tag: auto/th/bluez-4_96-3~2 X-Git-Url: https://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=f76511afbc409efc9f30527a964302bf4d80afe6;p=packages%2Fbluez.git - upstart scripts Changed files: bluetooth.upstart -> 1.1 dund.upstart -> 1.1 pand.upstart -> 1.1 rfcomm.upstart -> 1.1 --- diff --git a/bluetooth.upstart b/bluetooth.upstart new file mode 100644 index 0000000..080c781 --- /dev/null +++ b/bluetooth.upstart @@ -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 index 0000000..3addb40 --- /dev/null +++ b/dund.upstart @@ -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 index 0000000..87c5117 --- /dev/null +++ b/pand.upstart @@ -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 index 0000000..1dee983 --- /dev/null +++ b/rfcomm.upstart @@ -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