diff --git a/plugins/lxc/lxc-multigraph b/plugins/lxc/lxc-multigraph index f97f925f..0becc68e 100755 --- a/plugins/lxc/lxc-multigraph +++ b/plugins/lxc/lxc-multigraph @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # -*- sh -*- : << =cut @@ -94,7 +94,7 @@ cgrouppath=${cgrouppath:-} # --- FUNCTIONS -function active_guests { +active_guests() { local excludes="$1" local guest_name for guest_name in $(lxc-ls) @@ -109,7 +109,7 @@ function active_guests { } -function get_lxc_cgroup_info { +get_lxc_cgroup_info() { local guest_name="$1" local field="$2" # lxc3 (lxc < 3: may output some warnings if there is cruft in your config dir) @@ -117,7 +117,7 @@ function get_lxc_cgroup_info { } -function lxc_netdev { +lxc_netdev() { local guest_name="$1" if [ -f "$lxcpath/$guest_name/config" ]; then