mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 18:49:33 +02:00
bluez-utils: added dependencies and restart function to init script
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4999 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
21
meta/packages/bluez/bluez-utils/add-restart.patch
Normal file
21
meta/packages/bluez/bluez-utils/add-restart.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
scripts/bluetooth.init | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
--- bluez-utils-3.18.orig/scripts/bluetooth.init
|
||||
+++ bluez-utils-3.18/scripts/bluetooth.init
|
||||
@@ -47,10 +47,14 @@ case "$1" in
|
||||
echo -n "Stopping $DESC:"
|
||||
killall $DAEMON_NAME > /dev/null 2>&1 || true
|
||||
echo -n " $DAEMON_NAME"
|
||||
echo "."
|
||||
;;
|
||||
+ restart)
|
||||
+ $0 stop
|
||||
+ $0 start
|
||||
+ ;;
|
||||
*)
|
||||
N=/etc/init.d/$NAME
|
||||
echo "Usage: $N {start|stop}" >&2
|
||||
exit 1
|
||||
;;
|
||||
Reference in New Issue
Block a user