Skip to content

Instantly share code, notes, and snippets.

@ceres-c
ceres-c / wpa_debug.sh
Created January 8, 2018 10:54 — forked from wch/wpa_debug.sh
Script for restarting wpa_supplicant in debug mode under Arch linux (systemd)
#!/bin/bash
# set wpa_supplicant debug level to 1, disable timestamps, disable show_keys
[ "$UID" == 0 ] || { echo "Only root can run this"; exit 0;}
LOG="/var/log/wpa_supplicant.log"
echo "Stopping NetworkManager"
systemctl stop NetworkManager