Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Mac OSX – Bash – Fix WiFi

Posted on July 19, 2018 By David Kittell
#!/bin/sh

#  FixWiFi.sh
#  
#
#  Created by David Kittell on 1/17/18.
#  

cd ~/Desktop
mkdir WiFiConfigBackup

networksetup -setairportpower airport off
mv /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist ~/Desktop/WiFiConfigBackup
mv /Library/Preferences/SystemConfiguration/com.apple.network.eapolclient.configuration.plist ~/Desktop/WiFiConfigBackup
mv /Library/Preferences/SystemConfiguration/com.apple.wifi.message-tracer.plist ~/Desktop/WiFiConfigBackup
mv /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist ~/Desktop/WiFiConfigBackup
mv /Library/Preferences/SystemConfiguration/preferences.plist ~/Desktop/WiFiConfigBackup

shutdown -r now

All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Mac OS X Shell Mac OSX UNIX UNIX Shell Scripts

Post navigation

Previous post
Next post

Related Posts

MessageBox Class

Posted on November 19, 2013October 26, 2015

Dim result = MessageBox.Show("Message To Display", "MessageBox Title", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) If result = DialogResult.Cancel Then MessageBox.Show("Cancel Button Pressed", "MessageBox Title",MessageBoxButtons.OK , MessageBoxIcon.Exclamation) ElseIf result = DialogResult.No Then MessageBox.Show("No Button Pressed", "MessageBox Title", MessageBoxButtons.OK, MessageBoxIcon.Error) ElseIf result = DialogResult.Yes Then MessageBox.Show("Yes Button Pressed", "MessageBox Title", MessageBoxButtons.OK, MessageBoxIcon.Information) End If var result…

Read More

Get City/State/Country From IP

Posted on September 27, 2013October 26, 2015

I have a lot of possible options on this page, as I find time I’ll clean this page up a bit to make it more user friendly. C# Free, Fast JavaScript Free, Fast Microsoft SQL Using GeoPlugin.net XML Option [raw] All Values geoPlugin: geoplugin_request: 208.67.222.222geoplugin_status: 200geoplugin_credit: Some of the returned…

Read More

Excel – Get Worksheet Name

Posted on August 29, 2016

If you’re like me you name your worksheets in Excel to help make more sense of the data. I try to incorporate a universal header in most of my Excel documents so this script helps me. =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255) Example: Say you have an Excel file to log all the domains you…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes