Use a function.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
drop scan
Tidy & rename

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
Wait until network appears.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
Add "nonet"