Skip to content

Instantly share code, notes, and snippets.

@lucascantor
Created January 27, 2018 08:06
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 lucascantor/500559ac87f2a59d2721c3a7ebd791ef to your computer and use it in GitHub Desktop.
Save lucascantor/500559ac87f2a59d2721c3a7ebd791ef to your computer and use it in GitHub Desktop.
Remove network config files to reset to factory defaults
#!/bin/bash
to_remove=(
"/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist"
"/Library/Preferences/SystemConfiguration/com.apple.network.identification.plist"
"/Library/Preferences/SystemConfiguration/com.apple.wifi.message-tracer.plist"
"/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist"
"/Library/Preferences/SystemConfiguration/preferences.plist"
)
for item in "${to_remove[@]}"; do
rm -rf "${item}"
done
exit0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment