|
|
@ -96,7 +96,7 @@ case "$1" in |
|
|
log_daemon_msg "Starting $DESC: $NAME" |
|
|
log_daemon_msg "Starting $DESC: $NAME" |
|
|
|
|
|
|
|
|
if [ "$MUST_NFS" = yes ]; then |
|
|
if [ "$MUST_NFS" = yes ]; then |
|
|
if ! egrep -q '^[^ :]+:[^ :]+ '"$NFS_LOCAL_MOUNT"' nfs.? ' /proc/mounts; then |
|
|
|
|
|
|
|
|
if ! grep -E -q '^[^ :]+:[^ :]+ '"$NFS_LOCAL_MOUNT"' nfs.? ' /proc/mounts; then |
|
|
log_progress_msg "Mounting NFS share" |
|
|
log_progress_msg "Mounting NFS share" |
|
|
test -d "$NFS_LOCAL_MOUNT" || mkdir -p "$NFS_LOCAL_MOUNT" |
|
|
test -d "$NFS_LOCAL_MOUNT" || mkdir -p "$NFS_LOCAL_MOUNT" |
|
|
mount -t nfs -o "$NFS_OPTIONS" "$NFS_HOST":"$NFS_REMOTE_PATH" "$NFS_LOCAL_MOUNT" |
|
|
mount -t nfs -o "$NFS_OPTIONS" "$NFS_HOST":"$NFS_REMOTE_PATH" "$NFS_LOCAL_MOUNT" |
|
|
|