Script used unload and load usb driver in Mac for Asix AX88179 based Network adapter.
Created
May 12, 2014 14:48
-
-
Save marcoslin/6be73c1f2b3c80624d6d to your computer and use it in GitHub Desktop.
netreset.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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