]>
git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/lxc-ls.in
5 if [ ! -r $lxcpath ]; then
12 mount_string
=$
(mount
-t cgroup |
grep -E -e '^lxc ')
13 if test -z "$mount_string"; then
14 mount_string
=$
(mount |
grep -m1 'type cgroup')
16 if test -n "$mount_string"; then
17 mount_point
=$
(echo $mount_string |cut
-d' ' -f3)
23 active
=$
(netstat
-xa |
grep $lxcpath | \
24 sed -e 's#.*'"$lxcpath/"'\(.*\)/command#\1#');
26 if test -n "$active"; then
28 if test -n "$mount_point"; then
29 cd $mount_point; ls $
* -d $active