udhcpc notify when ready

This commit is contained in:
Daniel Barlow 2023-03-07 19:06:40 +00:00
parent f9f9720ba7
commit 06687a819a

View file

@ -31,6 +31,7 @@ let
bound) bound)
# this doesn't actually replace, it adds a new address. # this doesn't actually replace, it adds a new address.
set_address set_address
echo >/proc/self/fd/10
;; ;;
renew) renew)
set_address set_address
@ -43,6 +44,7 @@ let
in longrun { in longrun {
inherit name; inherit name;
run = "${busybox}/bin/udhcpc -f -i ${interface.device} -s ${script}"; run = "${busybox}/bin/udhcpc -f -i ${interface.device} -s ${script}";
notification-fd = 10;
dependencies = [ interface ]; dependencies = [ interface ];
} }