Skip to content

Instantly share code, notes, and snippets.

@yanshay
yanshay / .sleep
Last active July 3, 2021 20:14
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