cdm: add reboot and shutdown