added "sync" before reboot