Skip to content

Instantly share code, notes, and snippets.

@byroot
Last active September 30, 2022 21:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byroot/c1f69f21cbb7f5708160643207243a50 to your computer and use it in GitHub Desktop.
Save byroot/c1f69f21cbb7f5708160643207243a50 to your computer and use it in GitHub Desktop.
#!/bin/bash
# See: http://osxdaily.com/2015/10/16/fix-wi-fi-problems-mac-os-x-el-capitan/
sudo rm -f /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
com.apple.network.identification.plist
sudo rm -f /Library/Preferences/SystemConfiguration/com.apple.wifi.message-tracer.plist
sudo rm -f /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
sudo rm -f /Library/Preferences/SystemConfiguration/preferences.plist
sudo reboot
@lpicanco
Copy link

I did a backup before:

sudo zip networkConfigBackup.zip \
         com.apple.airport.preferences.plist       \
         com.apple.network.identification.plist    \
         com.apple.wifi.message-tracer.plist       \
         NetworkInterfaces.plist preferences.plist

@Varun0227
Copy link

can I get this zip file

@hsafayet
Copy link

can I have that zip file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment