Salivary glands are innervated, either directly or indirectly, by the parasympathetic and sympathetic arms of the autonomic nervous system.