I am running homebrew dnsmasq on my Mac.
Dsmasq is configured to only respond to traffic on one NIC (en7). en7 is a usb-c ethernet adapter.
When this adapter is not active (not plugged in, switch not switched on) homebrew.mxcl.dnsmasq is spamming my system logs that dnsmasq cannot be started because the NIC is not available. Retrying every 1 second.
I know the KeepAlive.NetworkState key can make that homebrew.mxcl.dnsmasq only launches when a network is available. The issue is that there is ALWAYS a network available, my Wifi adapter is always on.
What i am looking for is a way to launch homebrew.mxcl.dnsmasq only when en7 becomes available (adapter plugged in and switch switched on).
Is this possible?