This PR allows dhcp_release command to be run with doas or please as alternatives to sudo. If the current user is root, dhcp_release will be run directly.
-n short flag is used here instead of --non-interactive since doas doesn't have the corresponding long form, while in please case it's a short argument of --noprompt.
This PR allows
dhcp_release
command to be run with doas or please as alternatives to sudo. If the current user is root,dhcp_release
will be run directly.-n
short flag is used here instead of--non-interactive
sincedoas
doesn't have the corresponding long form, while inplease
case it's a short argument of--noprompt
.