saltstack/salt — pull request #1984 by 0xDEC0DE (2012-09-06 21:11:11+00:00)
Title: Make the ability to determine the SysV runlevel on Upstart track how the system does it

This cures a problem where Salt cannot tell if any of the SysV-style services are enabled, because it cannot reliably determine the current runlevel. (strictly speaking, the current method of "guess 2 if the command fails" also works, but is sub-wonderful)