Netanyahu like Hamas need a war to keep them running. Nentanyahu faces corruption cases in Israel and Hamas has little to offer the people of Gaza apart from war.
Btw, most weapons Hamas has been using came from Israeli forces and not through Egypt as most people assumed. Israeli military personel and arm dealers sold weapons to Hamas.