TT#24097 Use «grep -E» instead of deprecated egrep

Change-Id: Ia4d51ece3aba31777f62c92897d4e7c207e6d07c
changes/24/16724/6
Guillem Jover 8 years ago
parent 33bafcfc3c
commit 376df64d80

@ -96,7 +96,7 @@ case "$1" in
log_daemon_msg "Starting $DESC: $NAME"
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"
test -d "$NFS_LOCAL_MOUNT" || mkdir -p "$NFS_LOCAL_MOUNT"
mount -t nfs -o "$NFS_OPTIONS" "$NFS_HOST":"$NFS_REMOTE_PATH" "$NFS_LOCAL_MOUNT"

Loading…
Cancel
Save