diff options
Diffstat (limited to 'recipes-extended/irqbalance/irqbalance/irqbalance-Add-status-and-reload-commands.patch')
-rw-r--r-- | recipes-extended/irqbalance/irqbalance/irqbalance-Add-status-and-reload-commands.patch | 55 |
1 files changed, 55 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 | |||