wifi

Bash script that connects to wifi

This package provides convenient commands to manage your wifi networks.

$ bpkg install -g wifi

Usage

Some commands require root privileges to access wifi info.

# List currently available wifi networks.
sudo wifi.sh scan

# Connect to best network
sudo wifi.sh connect

# Add a network to file.
sudo wifi.sh add <SSID> <passphrase>

# Show current interface
wifi.sh interface

# this defaults to the LAST interface
# it finds, for me, this is the most recent USB wifi
# dongle I plugged in.

# Set interface manually like this:
sudo INTERFACE=wlan0 wifi.sh connect

# Set wpa_supplicant.conf location
sudo WPA_CONF=/etc/wpa_supplicant.conf wifi.sh connect

Published: June 16 2014

blog comments powered by Disqus