support reboot setting and function, can set wait seconds.