Corrected hardware and network script to be sh compliant
Refactoring has to be done