A California man allegedly inspired by the Gilroy Garlic Festival mass shooting was arrested for threatening to kill hundreds of people, police said.

Jose Pinon, 40, of Gilroy posted on Facebook last week that “my goal is to kill 500, not three” — apparently in reference to the July 28 shooting at the Northern California food fair, where three people, including two children, were killed and 13 others injured.

Pinon was arrested and charged Thursday with making criminal threats, a felony, and violating a domestic-violence-related restraining order. He was being held on $30,000 bail.

Gilroy Police Capt. Joseph Deras said officers didn’t find any weapons in Pinon’s home, and they don’t believe he was actively planning an attack.

Investigators still haven’t determined what motivated festival gunman Santino William Legan, 19, to open fire, before fatally shooting himself.

But the discovery of a “target list” of religious institutions, courthouses, federal buildings and other sites compiled by Legan has prompted the FBI to open a domestic terrorism case, investigators said Tuesday.

With Post wires