MISSOULA, Mont. (AP) — A judge has given a trucker a suspended sentence for driving a tractor-trailer the wrong way on Interstate 90.

Missoula County District Judge Ed McLean on Wednesday sentenced Darrell Shepherd to three years in prison for a criminal endangerment conviction. McLean suspended the sentence except for the 148 days that Shepherd has already served.

The Montana Highway Patrol stopped Shepherd Oct. 31 after receiving a report of a tractor-trailer traveling the wrong way on I-90 near the Montana-Idaho border.

His truck allegedly knocked over a sign and forced several vehicles to swerve out of the way.

Shepherd is a 48-year-old California resident. Court documents did not list his hometown.

As a condition of Shepherd's probation, he can't drive commercially without permission from the court.