Skip to content

Instantly share code, notes, and snippets.

@marcoslin
Created May 12, 2014 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcoslin/6be73c1f2b3c80624d6d to your computer and use it in GitHub Desktop.
Save marcoslin/6be73c1f2b3c80624d6d to your computer and use it in GitHub Desktop.
netreset.sh

netreset.sh

Script used unload and load usb driver in Mac for Asix AX88179 based Network adapter.

#!/bin/bash
if kextstat | grep -q asix; then
echo "Enter password for sudo:"
sudo kextunload -b com.asix.driver.ax88179-178a
sudo kextload -b com.asix.driver.ax88179-178a
else
echo "com.asix.driver.ax88179-178a not loaded."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment