ST. JOHNSBURY (AP) - A St. Johnsbury man who was shot by a Vermont state trooper during a standoff on a school bus has pleaded guilty to assault and other charges.

Thirty-seven-year-old William Mahoney was shot in the hip in September 2012, after stealing a car, hiding in the bus and broadcasting threats on a school radio.

The Caledonian Record reports that Mahoney pleaded guilty Monday to simple assault, trespassing, leaving the scene of an accident, negligent operation and driving with a suspended license.

He was sentenced to at least two years in prison, with a maximum sentence of life. Caledonia County State's Attorney Lisa Warren said the life sentence hanging over his head should deter Mahoney from further criminal conduct.