Last active
July 3, 2021 20:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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