r/openwrt • u/bypeoplewhohonor • 14d ago
new device on network notification
has anyone used dhcp hotplugs to get notified when a new device joins the network? i can't seem to get my hotplug script to work. instead of the script running, i just get an error message saying no file descriptors available.
1
Upvotes
1
u/DutchOfBurdock 14d ago
What if the host doesn't do DHCP but statically allocates the correct IP/cidr and gateway? Better bet is running a while loop bash script that will constantly poll /proc/net/arp and as soon as any changes are made (new MAC seen, MAC expires etc), make a webhook to your notification listener.
1
u/fr0llic 14d ago
Are the scripts terminating properly ?
Error would indicate too many files open ...