Skip to content

Instantly share code, notes, and snippets.

View bws0013's full-sized avatar
:atom:

Ben Smith bws0013

:atom:
View GitHub Profile
@bws0013
bws0013 / bandaid.sh
Created December 20, 2020 01:17
My macbook has been encountering sporadic wifi issues in its old age. To cope with this I made a script designed to reset my wifi should this connection drop occur.
#!/bin/bash
# Steps to run, either add execution and run, or run the following
# bash <path-to-script>/bandaid.sh &
# To kill script find the pid with ps and kill or run the following
# kill -9 $(pgrep -f bandaid.sh)
# My System: macOS High Sierra, Version 10.13.6
# Bash version: GNU bash, version 3.2.57