|
Lines 111-123
Link Here
|
| 111 |
status) |
111 |
status) |
| 112 |
echo -n "Checking for mounted nfs shares (from /etc/fstab):" |
112 |
echo -n "Checking for mounted nfs shares (from /etc/fstab):" |
| 113 |
if test "$nfs" = "yes" ; then |
113 |
if test "$nfs" = "yes" ; then |
| 114 |
while read where what type options rest ; do |
114 |
# read -r ... grep -F: handle /foo\040bar correctly (#232356) |
|
|
115 |
while read -r where what type options rest ; do |
| 115 |
case "$where" in |
116 |
case "$where" in |
| 116 |
\#*|"") ;; |
117 |
\#*|"") ;; |
| 117 |
*) case "$options" in |
118 |
*) case "$options" in |
| 118 |
*noauto*) ;; |
119 |
*noauto*) ;; |
| 119 |
*) if test "$type" = "nfs" -o "$type" = "nfs4" ; then |
120 |
*) if test "$type" = "nfs" -o "$type" = "nfs4" ; then |
| 120 |
grep -q "$where $what nfs" /proc/mounts || rc_failed 3 |
121 |
grep -F -q "$where $what nfs" /proc/mounts || rc_failed 3 |
| 121 |
fi ;; |
122 |
fi ;; |
| 122 |
esac |
123 |
esac |
| 123 |
esac |
124 |
esac |