git://git.onelab.eu
/
vsys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* The main change in version 0.9 is file-descriptor passing support. The way this...
[vsys.git]
/
factory
/
pfmount
diff --git
a/factory/pfmount
b/factory/pfmount
index
76f23ce
..
0282c76
100755
(executable)
--- a/
factory/pfmount
+++ b/
factory/pfmount
@@
-1,4
+1,10
@@
#!/bin/sh
# Mount the planetflow directory in a slice
#!/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