bluez/bluez-utils-3.9-initscript.patch

39 lines
847 B
Diff
Raw Normal View History

diff -Nru bluez-utils-3.9.orig/scripts/bluetooth.init bluez-utils-3.9/scripts/bluetooth.init
--- bluez-utils-3.9.orig/scripts/bluetooth.init 2007-01-28 21:16:47.000000000 +0100
+++ bluez-utils-3.9/scripts/bluetooth.init 2007-03-06 13:57:46.000000000 +0100
@@ -2,6 +2,10 @@
#
# Start/stop the Bluetooth daemons
#
+# chkconfig: 2345 98 5
+# processname: hcid spd hidd
+# description: bluetooth service
+#
set -e
@@ -40,7 +44,7 @@
DUND_OPTIONS=""
PAND_OPTIONS=""
-[ -e /etc/default/bluetooth ] && . /etc/default/bluetooth
+[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
case "$1" in
start)
@@ -97,9 +101,13 @@
echo -n " $HCID_NAME"
echo "."
;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
*)
N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop}" >&2
+ echo "Usage: $N {start|stop|restart}" >&2
exit 1
;;
esac