fix reboot line, add missing %end