diff options
| author | Yang Shi <yang.shi@windriver.com> | 2013-08-27 09:44:18 -0700 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-29 10:14:47 -0400 |
| commit | 1c04c0d002db838f45e40d6b5cdeabd565348a21 (patch) | |
| tree | ec8899d1a7715f3ddb81c1a3d5a77f1b3221fb6f | |
| parent | 7234dca86661841ccf406ecacfa1b4c0b17069eb (diff) | |
| download | meta-virtualization-1c04c0d002db838f45e40d6b5cdeabd565348a21.tar.gz | |
irqbalance: Uprev to 1.0.6
Add recipe for 1.0.6 version. And, add status and reload commands into
init script.
Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
| -rw-r--r-- | recipes-extended/irqbalance/irqbalance/irqbalance-Add-status-and-reload-commands.patch | 55 | ||||
| -rw-r--r-- | recipes-extended/irqbalance/irqbalance_1.0.6.bb | 15 |
2 files changed, 70 insertions, 0 deletions
diff --git a/recipes-extended/irqbalance/irqbalance/irqbalance-Add-status-and-reload-commands.patch b/recipes-extended/irqbalance/irqbalance/irqbalance-Add-status-and-reload-commands.patch new file mode 100644 index 00000000..d853d0b4 --- /dev/null +++ b/recipes-extended/irqbalance/irqbalance/irqbalance-Add-status-and-reload-commands.patch | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | From dc7366896dd5a5bae82be4b11530bc9fdb7cbcdd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yang Shi <yang.shi@windriver.com> | ||
| 3 | Date: Mon, 26 Aug 2013 10:58:02 -0700 | ||
| 4 | Subject: [PATCH] irqbalance: Add status and reload commands | ||
| 5 | |||
| 6 | Add status and reload commands for irqbalanced init script | ||
| 7 | |||
| 8 | Signed-off-by: Yang Shi <yang.shi@windriver.com> | ||
| 9 | --- | ||
| 10 | irqbalance.init | 12 +++++++++--- | ||
| 11 | 1 files changed, 9 insertions(+), 3 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/irqbalance.init b/irqbalance.init | ||
| 14 | index d12d62c..f58bf55 100644 | ||
| 15 | --- a/irqbalance.init | ||
| 16 | +++ b/irqbalance.init | ||
| 17 | @@ -1,6 +1,6 @@ | ||
| 18 | #!/bin/sh | ||
| 19 | # | ||
| 20 | -# Copyright (c) 2012 Wind River Systems, Inc. | ||
| 21 | +# Copyright (c) 2013 Wind River Systems, Inc. | ||
| 22 | # | ||
| 23 | ### BEGIN INIT INFO | ||
| 24 | # Provides: irqbalance | ||
| 25 | @@ -11,6 +11,8 @@ | ||
| 26 | # Short-Description: IRQ allocation daemon | ||
| 27 | ### END INIT INFO | ||
| 28 | |||
| 29 | +. /etc/init.d/functions | ||
| 30 | + | ||
| 31 | case "$1" in | ||
| 32 | start) | ||
| 33 | echo -n "Starting irqbalance: " | ||
| 34 | @@ -22,12 +24,16 @@ case "$1" in | ||
| 35 | start-stop-daemon -K -n irqbalance | ||
| 36 | echo "done" | ||
| 37 | ;; | ||
| 38 | - restart) | ||
| 39 | + restart|reload) | ||
| 40 | $0 stop | ||
| 41 | $0 start | ||
| 42 | ;; | ||
| 43 | + status) | ||
| 44 | + status irqbalance | ||
| 45 | + echo "done" | ||
| 46 | + ;; | ||
| 47 | *) | ||
| 48 | - echo "Usage: $0 {start | stop | restart}" >&2 | ||
| 49 | + echo "Usage: $0 {start | stop | restart | reload | status}" >&2 | ||
| 50 | exit 1 | ||
| 51 | ;; | ||
| 52 | esac | ||
| 53 | -- | ||
| 54 | 1.7.5.4 | ||
| 55 | |||
diff --git a/recipes-extended/irqbalance/irqbalance_1.0.6.bb b/recipes-extended/irqbalance/irqbalance_1.0.6.bb new file mode 100644 index 00000000..fd08b73f --- /dev/null +++ b/recipes-extended/irqbalance/irqbalance_1.0.6.bb | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # | ||
| 2 | # Copyright (C) 2013 Wind River Systems, Inc. | ||
| 3 | # | ||
| 4 | |||
| 5 | require irqbalance.inc | ||
| 6 | |||
| 7 | PR = "r0" | ||
| 8 | |||
| 9 | SRC_URI[md5sum] = "b73b1a5a9e1c3c428ae39024c711e41e" | ||
| 10 | SRC_URI[sha256sum] = "95ac79992e6de501f613c781b0fc8aa17a4aaf6a3d865bb6e15ac6a46c6ab1fd" | ||
| 11 | |||
| 12 | SRC_URI = "http://irqbalance.googlecode.com/files/irqbalance-${PV}.tar.gz \ | ||
| 13 | file://add-initscript.patch \ | ||
| 14 | file://irqbalance-Add-status-and-reload-commands.patch \ | ||
| 15 | " | ||
