]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-netstat: improve finding fs mountpoint of hierarchy
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 26 Dec 2012 09:07:03 +0000 (10:07 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 2 Jan 2013 17:47:31 +0000 (12:47 -0500)
commitf358385a7cf0ec74925d7f26b8a9dab1225dc2b6
treef69291ec40c5174997bbaa9f28c5a211a2f6d31a
parentf3849d01d8f31785bf933ffcf91a419c4ff2257d
lxc-netstat: improve finding fs mountpoint of hierarchy

We cannot assume that the mount source name always starts with 'cgroup'
so we check the filesystem type instead.

Use 'awk' instead of 'grep -E' and  as it is a better tool for this job.

This fixes the tool on systems using openrc.

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