Teen who made threats to school gets off with two years probation