At home I connect my MacBook Pro, running OS X El Capitan, to the Internet using Ethernet, and share the connection with my phone via Wi-Fi.
At work I connect the MacBook Pro to the company network using Ethernet, and Internet Sharing is not allowed.
Is there a way to automatically turn Internet Sharing on and off depending on which network I am on?
A solution which detects the Ethernet network, somehow, the presence or absence of specific Wi-Fi network, or indeed the actual geographic location would do the job.
I am aware that I can set the 'Location' via the Apple menu, but can that control the Internet Sharing options, and can detecting the location not be done automatically? Selecting the location manually is too much like hard work.