The problem is setting the internet sharing with CLI instead of GUI in Mac OS 10.9.2
I followed instructions as per this thread Start/stop internet sharing from a script? including both CLI and scripting the system pref app, but to no avail. Also tried the Sidekick app (formerly NetworkLocation) and finding that it cannot set up internet sharing on its own.
This is the situation:
CLI only launches internetsharing.plist file, while other things such as bootpd and natpmpd are not launched. I tried to make a
copy-bootpd.plistfile permanently resident in
/etcbut that doesn't seem to do any better.
I was already using a script originally, and the reason I switched to CLI was that GUI scripting of
System Preferencesis almost impossible in 10.9.2 as object names are not properly passed. Hence the same script will work or not work, depending on something I'll never find out.
Sidekick is unable to do more than start and run an app, while modifying the settings within the app still needs to be done by hand.
Question: Is there someone out there who can pick every single event taking place when one checks internet sharing box in the sharing pref pane, and possibly suggest how to activate the same events with CLI?