7
if [ ! -r $lxcpath ]; then
12
echo "usage: $0 -n <name>"
25
if [ -z "$exec" ]; then
26
exec @BINDIR@/lxc-unshare -m -- @BINDIR@/lxc-netstat -n $name --exec $*
29
if [ -z "$name" ]; then
30
echo "usage: $0 -n <name>"
34
if [ ! -d $lxcpath/$name ]; then
35
echo "'$name' does not exists"
39
if [ ! -r $lxcpath/$name ]; then
40
echo "Can not access '$name': permission denied"
44
if [ ! -f $lxcpath/$name/init ]; then
48
initpid=$(cat $lxcpath/$name/init) && \
49
mount --bind /proc/$initpid/net /proc/$$/net && \