joukewitteveen/netcfg — comment on commit 10a01a13d3e849e576dadd5ca39be67c632f9f3a
File: scripts/wifi-menu line 203
By joukewitteveen:

Are you sure? If the test fails, we bring up the interface up through `bring_interface up` (available from /usr/lib/network/network), which calls `ip link set dev "$INTERFACE" up`. Currently, the test seems to exactly test whether that is necessary.

As a demonstration of my incomplete understanding of what 'up' means, a question:
The carrier state might not relate to the opperstate, which is what really matters?
If this is correct, my test might be preferred. Otherwise, your suggested code will get a warm welcome.