This corresponds with the name of my current location name of “Work”: To get the GUI name of the current network location simply use the following command for my computer, I get the following output: Although not useful in an initial ‘first run’ script (as this will almost always be ‘Automatic’) this might be handy for an extension attribute in Casper, or to have your script check and report back. The first thing you might want to do, is to check what is the current set Network location. In today’s blog, I will be dealing with the arguments relating to Network location setup. Working with networksetupĪll over, the command in this series will use the ‘networksetup’ command In this batch I plan to go through some items which I learnt for a recent education project: modifying network locations via the command line, modifying proxy settings via the command line, and combining the two into a possible first run script that can be used at imaging time to set these items as desired. Welcome back to my (hopefully) popular Bash scripting series!
0 Comments
Leave a Reply. |