If you want this, you have to change the GCode flavor from "UltiGCode" to "RepRap" in Cura, this is because when you use the SD card menu in the UM2, the UM2 heats up and starts up itself, and this is not in the GCode. But with RepRap style GCode this is in the GCode file, which is what OctoPrint expects.