]> git.ipfire.org Git - thirdparty/lxc.git/commit
cleanup: use lxc-info --state-is
authorNatanael Copa <ncopa@alpinelinux.org>
Fri, 28 Dec 2012 08:24:55 +0000 (09:24 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 2 Jan 2013 17:52:37 +0000 (12:52 -0500)
commit7265dc4344d5d0555e9a88467eaee392594e3171
tree4a8c01ee93f37ea4c38773568c03e0c8ce6149d1
parent32e869018640e0d898031de20514e0ffca79baa9
cleanup: use lxc-info --state-is

We now have the possibility to test for a given state. Use this feature
instead of parsing output with grep or awk

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc-clone.in
src/lxc/lxc-destroy.in
src/lxc/lxc-netstat.in
src/lxc/lxc-shutdown.in