If for some reason the name en0 doesn’t work for you, you’ll need to run this command:Īnd then dig around through that output to find the right name. (I found these commands on the website I linked to.)Īs you can imagine, when I issue the first command, the wireless icon in the Mac menubar shows that the network is disabled, and when I issue the second command, if my Mac is able to connect to the wireless router, the icon is shown as enabled. In short, I use this MacOS command to turn off the Mac networking service:Īnd I use this command to turn the Mac wireless network service back on: I've been having a problem with my MacBook Air and my wireless router, so today I decided to write a script to restart the MacOS wireless networking service from the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |