a little more verbose error message to point out the issue if vsys fails to execute...
[vsys.git] / factory / pfmount
index 76f23ce..0282c76 100755 (executable)
@@ -1,4 +1,10 @@
 #!/bin/sh
 # Mount the planetflow directory in a slice
 
-mount --bind /usr/local/fprobe /vservers/$1/pf
+#mount --bind /usr/local/fprobe /vservers/$1/pf
+# changed from request of Faiyaz
+DEST="/vservers/$1/pf"
+mount | grep "on $DEST type" > /dev/null
+if [ $? -eq 1 ]; then
+    mount --bind /var/local/fprobe -o ro $DEST
+fi