Mariano Rivera didn’t get a chance to close yesterday’s season opener, but he was able to clear one more hurdle before the Yankees’ 8-2 loss to the Red Sox at Yankee Stadium.

The 43-year-old returned to his habit of shagging fly balls during batting practice, which is how he suffered the knee injury that nearly ended his career last year in Kansas City.

“Yes, I did, and it felt good,” Rivera said of his pregame ritual. “I didn’t go full strength, but I will at some point. I will continue doing it. I won’t change anything. It happened, and I have to move on.”

Rivera showed no ill effects in spring training from the torn right ACL.

After the loss, Rivera — who has said he will retire after the season — didn’t want to discuss the loud ovation he received from the crowd during player introductions in The Bronx and was equally tight-lipped about what lies ahead in his final season.

“I can’t think about tomorrow or next season,” Rivera said. “I really don’t think like that. My mind doesn’t go that far. It’s being in the present, what I have to do now.”