hooks: Misc. fixes to the opensuse network config hook
Integrate cleaned-up changes from production

Rewritten sed expression to fix the configuration in a single pass.