mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Fix for lxc < 3
This commit is contained in:
parent
89e0f1c729
commit
241b0c6067
1 changed files with 3 additions and 2 deletions
|
@ -59,8 +59,9 @@ function lxc_netdev {
|
||||||
|
|
||||||
if [ -f $lxcpath/$g/config ]; then
|
if [ -f $lxcpath/$g/config ]; then
|
||||||
# lxc 3 vs < 3
|
# lxc 3 vs < 3
|
||||||
egrep '^lxc.net.0.veth.pair' $lxcpath/$g/config 2>/dev/null | awk '{print $NF;}' \
|
(egrep '^lxc.net.0.veth.pair' $lxcpath/$g/config 2>/dev/null \
|
||||||
|| egrep '^lxc.network.veth.pair' $lxcpath/$g/config | awk '{print $NF;}'
|
|| egrep '^lxc.network.veth.pair' $lxcpath/$g/config
|
||||||
|
) | awk '{print $NF;}'
|
||||||
else
|
else
|
||||||
echo unknown
|
echo unknown
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue