for opt in $fstab_opts do # we care about noexec and ro, nothing else if [ "$opt" = "noexec" -o "$opt" = "ro" ] then echo "$curr_opts" | egrep "$opt" >/dev/null 2>&1 if [ $? -eq 0 ] # no match; print warning then : else printlog "\"$opt\" missing from \"$curr_opts\" ($dev @ `cat /proc/mounts | egrep "$dev" | awk '{print $2}'`)" i=$i+1 fi else : fi done