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

This test succeeds if the device is 'up'. In that case `ip link show up dev $INTERFACE` outputs to stdout. If it is not up or something goes wrong it does not output to stdout, but does not necessarily return something other than 0.

The line is not perfect, I have the following replacement in mind:
```if [[ -z "$(ip link show up dev "$INTERFACE" 2> /dev/null)" ]]; then```