Skip to content

Instantly share code, notes, and snippets.

@yanshay
Last active July 3, 2021 20:14
Show Gist options
  • Save yanshay/37412922afb679e373e691da8cc68990 to your computer and use it in GitHub Desktop.
Save yanshay/37412922afb679e373e691da8cc68990 to your computer and use it in GitHub Desktop.
Avoid network broadcast storms with Macbook and Pass though power USB Type C Hubs
#!/bin/bash
# ~/.sleep
# For installation instructions of SleepWatcher:
# https://www.kodiakskorner.com/log/258
# For usage and disabling network interface (this script):
# https://www.dell.com/community/Monitors/U3421WE-Ethernet-causes-network-storm/td-p/7786590
# Sleepwatcher script to be executed before sleep
# Disable network interface of Dell monitor to avoid sending PAUSE frames during sleep
networksetup -setnetworkserviceenabled "USB 10/100/1000 LAN" off
#!/bin/bash
# ~/.wakeup
# https://www.kodiakskorner.com/log/258
# https://www.dell.com/community/Monitors/U3421WE-Ethernet-causes-network-storm/td-p/7786590
# Sleepwatcher script to be executed after wakeup
# Enable network interface of Dell monitor
networksetup -setnetworkserviceenabled "USB 10/100/1000 LAN" on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment