Fix pfmount script
[vsys-scripts.git] / exec / pfmount
1 #!/bin/sh
2 # Mount the planetflow directory in a slice
3
4 # FIXME: if touch operation failes
5 if [ ! -e /etc/vservers/$1/nonamespace ]; then
6     touch /etc/vservers/$1/nonamespace
7     if [ $? -eq 0 ]; then
8         vserver $1 stop
9         vserver $1 start
10     fi
11 fi
12
13 VERSION=`uname -r | awk -F"-" '{print $1;}' | awk -F"." '{print $3}'`
14 DEST="/vservers/$1/pf"
15
16 mount --bind /var/local/fprobe -o ro $DEST