diff options
Diffstat (limited to 'recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch')
-rw-r--r-- | recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch b/recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch deleted file mode 100644 index d1d31eea..00000000 --- a/recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From aada9da49caca9e4a25764df2d2a2c11d9d95dbb Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
3 | Date: Fri, 10 Apr 2015 10:55:49 -0400 | ||
4 | Subject: [PATCH] lxc-helper: create local action() function | ||
5 | |||
6 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
7 | --- | ||
8 | config/init/sysvinit/lxc.in | 14 ++++++++++++++ | ||
9 | 1 file changed, 14 insertions(+) | ||
10 | |||
11 | diff --git a/config/init/sysvinit/lxc.in b/config/init/sysvinit/lxc.in | ||
12 | index 19c102e74c86..9f96a4f7496f 100644 | ||
13 | --- a/config/init/sysvinit/lxc.in | ||
14 | +++ b/config/init/sysvinit/lxc.in | ||
15 | @@ -52,6 +52,20 @@ test ! -r "$sysconfdir"/sysconfig/lxc || | ||
16 | # Check for needed utility program | ||
17 | [ -x "$bindir"/lxc-autostart ] || exit 1 | ||
18 | |||
19 | +action() | ||
20 | +{ | ||
21 | + local STRING rc | ||
22 | + | ||
23 | + STRING=$1 | ||
24 | + echo -n "$STRING " | ||
25 | + | ||
26 | + shift | ||
27 | + "$@" && success $"$STRING" || failure $"$STRING" | ||
28 | + rc=$? | ||
29 | + | ||
30 | + return $rc | ||
31 | +} | ||
32 | + | ||
33 | # If libvirtd is providing the bridge, it might not be | ||
34 | # immediately available, so wait a bit for it before starting | ||
35 | # up the containers or else any that use the bridge will fail | ||
36 | -- | ||
37 | 2.1.0 | ||
38 | |||