Whenever a sentence is for violation of a state law, and the prisoner is confined in a county jail, the labor described by §§ 24-11-28 and 24-11-29 shall be performed under the direction of the board of county commissioners and superintended by the sheriff, who shall furnish necessary materials and tools at the expense of the county, and the county shall be entitled to the benefit thereof subject to the provisions of this chapter.
SDCL 24-11-30