Use systemctl to shutdown and reboot

By default, systemd allows the local user to shutdown and reboot the
system, so we can use systemctl to do that without typing the password.

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>