Skip to content

Instantly share code, notes, and snippets.

@blinsay
Last active August 23, 2024 21:52
Show Gist options
  • Save blinsay/bcfc4036cccb1cee820217fea9bd2dc2 to your computer and use it in GitHub Desktop.
Save blinsay/bcfc4036cccb1cee820217fea9bd2dc2 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Renew the DHCP lease on your stupid UDM. Why is there no button for this?
#
# https://community.ui.com/questions/Release-WAN-ip-on-UDM-pro/182aa99e-9b8e-49e9-829f-b5c3e02b4104
# https://udhcp.busybox.net/README.udhcpc
#
udhcpd_pid=$(pidof udhcpd)
kill -SIGUSR2 "$udhcpd_pid"
kill -SIGUSR1 "$udhcpd_pid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment