fix a bug causing the init script to fail and incorrect number of lan ports