The mother of a 6-year-old boy who shot his first-grade teacher in Virginia has been sentenced to two years in prison for felony child neglect.