Skip to main content
Question

shutdown Internet Sharing automatically after Mac reboot via command

  • May 17, 2021
  • 1 reply
  • 0 views

Forum|alt.badge.img+1

Hi there,

Just wondering is there any way to shutdown "Internet Sharing" automatically via script or command line ?? Already tried command "sudo /usr/libexec/InternetSharing -B", it could disable some background services but it couldn't eliminate the WIFI spot created. And I also tried serval methods from GOOGLE, however they are really out of date and could not be applied to Big sur and Catalina.

1 reply

Forum|alt.badge.img+2
  • New Contributor
  • 10 replies
  • September 15, 2021
/bin/launchctl stop com.apple.NetworkSharing /bin/launchctl disable system/com.apple.NetworkSharing /usr/libexec/PlistBuddy -c 'Delete NAT:Enabled' /Library/Preferences/SystemConfiguration/com.apple.nat.plist

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings