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

Sure, that works. There's really no need to fork for grep here, though. Just read the sysfs file and compare it.