Skip to content

Instantly share code, notes, and snippets.

@preveen-stack
preveen-stack / wifi
Created December 3, 2021 12:59 — forked from mdaffin/wifi
A script to make connecting with wpa_cli easier (Work in progress)
#!/bin/bash
# Wraps aursync command to mount an amazon s3 bucket which contains a repository
set -uo pipefail
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
INTERFACE=wlp58s0
wpa() {
wpa_cli -i "${INTERFACE}" "$@"
}