A simple WiFi utility CLI for FreeBSD
wutil
depends on libifconfig
and libwpa_client
. All required patches are
available in the patch/
directory.
libifconfig
is available vianet/libifconfig
# # as a package # pkg install net/libifconfig # # or as a port # make -C /usr/ports/net/libifconfig install
- To get
libwpa_client
, apply this patch to a FreeBSD ports tree and then build thesecurity/wpa_supplicant
port.# patch -p1 -d /usr/ports < patch/security_wpa__supplicant_libwpa__client-support.patch # make -C /usr/ports/security/wpa_supplicant install
# patch -p1 -d /usr/ports < patch/sysutils_wutil.patch
# make -C /usr/ports/sysutils/wutil install
$ make
$ wutil -h
Usage: wutil {-h | subcommand [args...]}
wutil interfaces
wutil interface <interface>
wutil [-c <wpa-ctrl-path>] known-networks
wutil [-c <wpa-ctrl-path>] {known-network | forget} <ssid>
wutil [-c <wpa-ctrl-path>] set
[-p <priority>] [--autoconnect {y | n}] <ssid>
wutil [-c <wpa-ctrl-path>] {scan | networks | status | disconnect}
wutil [-c <wpa-ctrl-path>] connect
[-i <eap-id>] [-p <password>] [-h] <ssid> [password]
$ wutui
