netcardconfig: Add comments to make code more readable
authorDarshaka Pathirana <dpat@syn-net.org>
Thu, 2 Apr 2020 08:51:23 +0000 (10:51 +0200)
committerDarshaka Pathirana <dpat@syn-net.org>
Thu, 2 Apr 2020 09:31:01 +0000 (11:31 +0200)
commit1c62e0a32b4732d2fe8195d9777a8d7e1a4964e1
treee362f104a28f383904d0bfbb642c36c64c97e6c0
parent7dc9ce84566d46a6ae20023031ec9abf25849bc1
netcardconfig: Add comments to make code more readable

Add comments before and after the very long if-stanzas in the
configiface function (which should be refactored by the way).

Also moved WLDEVICECOUNT= with an `iwconfig` call into the if-scope of
'Setup wireless options' to avoid an unneeded iwconfig call.
WLDEVICECOUNT is only used in that scope.
sbin/netcardconfig