Fixed restart/updating issues for synology/qnap devices, may also resolve other OS related simular issues.