diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-08-01 12:55:06 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-08-01 12:55:06 +0000 |
commit | 8ef48707e6dbedfd4594e0bc0fdd53b66a80d804 (patch) | |
tree | c42133f45271148681f0e3258ea8bcc3a7154f49 /meta | |
parent | de9da957b93460786999d9801061854003000e59 (diff) | |
download | openembedded-core-8ef48707e6dbedfd4594e0bc0fdd53b66a80d804.tar.gz openembedded-core-8ef48707e6dbedfd4594e0bc0fdd53b66a80d804.tar.bz2 openembedded-core-8ef48707e6dbedfd4594e0bc0fdd53b66a80d804.zip |
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
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/bluez/bluez-utils/add-init-deps.patch | 21 | ||||
-rw-r--r-- | meta/packages/bluez/bluez-utils/add-restart.patch | 21 | ||||
-rw-r--r-- | meta/packages/bluez/bluez-utils_3.18.bb | 6 |
3 files changed, 46 insertions, 2 deletions
diff --git a/meta/packages/bluez/bluez-utils/add-init-deps.patch b/meta/packages/bluez/bluez-utils/add-init-deps.patch new file mode 100644 index 0000000000..45bcce5aa9 --- /dev/null +++ b/meta/packages/bluez/bluez-utils/add-init-deps.patch @@ -0,0 +1,21 @@ +--- + scripts/bluetooth.init | 8 ++++++++ + 1 file changed, 8 insertions(+) + +--- bluez-utils-3.18.orig/scripts/bluetooth.init ++++ bluez-utils-3.18/scripts/bluetooth.init +@@ -1,6 +1,14 @@ + #!/bin/sh ++### BEGIN INIT INFO ++# Provides: bluetooth ++# Required-Start: $local_fs $syslog $remote_fs dbus ++# Required-Stop: $local_fs $syslog $remote_fs ++# Default-Start: 2 3 4 5 ++# Default-Stop: 0 1 6 ++# Short-Description: Start bluetooth daemons ++### END INIT INFO + # + # Start/stop the Bluetooth daemons + # + + set -e 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 @@ +--- + 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 + ;; diff --git a/meta/packages/bluez/bluez-utils_3.18.bb b/meta/packages/bluez/bluez-utils_3.18.bb index 50004e3cb2..093064ad35 100644 --- a/meta/packages/bluez/bluez-utils_3.18.bb +++ b/meta/packages/bluez/bluez-utils_3.18.bb @@ -1,12 +1,14 @@ require bluez-utils.inc DEPENDS += "glib-2.0" -PR = "r3" +PR = "r4" # ti patch doesn't apply, people using it should rediff it and send it upstream #SRC_URI += "file://hciattach-ti-bts.patch;patch=1 " -SRC_URI += "file://allow-no-hal.patch;patch=1 " +SRC_URI += "file://allow-no-hal.patch;patch=1 \ + file://add-init-deps.patch;patch=1 \ + file://add-restart.patch;patch=1" EXTRA_OECONF = " \ --enable-bccmd \ |