diff options
Diffstat (limited to 'meta/packages/bluez/bluez-utils/add-restart.patch')
-rw-r--r-- | meta/packages/bluez/bluez-utils/add-restart.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/packages/bluez/bluez-utils/add-restart.patch b/meta/packages/bluez/bluez-utils/add-restart.patch new file mode 100644 index 0000000000..e37befff41 --- /dev/null +++ b/meta/packages/bluez/bluez-utils/add-restart.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | --- | ||
2 | scripts/bluetooth.init | 4 ++++ | ||
3 | 1 file changed, 4 insertions(+) | ||
4 | |||
5 | --- bluez-utils-3.18.orig/scripts/bluetooth.init | ||
6 | +++ bluez-utils-3.18/scripts/bluetooth.init | ||
7 | @@ -47,10 +47,14 @@ case "$1" in | ||
8 | echo -n "Stopping $DESC:" | ||
9 | killall $DAEMON_NAME > /dev/null 2>&1 || true | ||
10 | echo -n " $DAEMON_NAME" | ||
11 | echo "." | ||
12 | ;; | ||
13 | + restart) | ||
14 | + $0 stop | ||
15 | + $0 start | ||
16 | + ;; | ||
17 | *) | ||
18 | N=/etc/init.d/$NAME | ||
19 | echo "Usage: $N {start|stop}" >&2 | ||
20 | exit 1 | ||
21 | ;; | ||