]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dhcpcd: Log any unhandled client events
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 17:22:52 +0000 (17:22 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 17 Dec 2022 17:20:45 +0000 (17:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/networking/dhcpcd.exe

index c243ce1a7c9f4c6e9afff87c5d63a97d1ee0e84c..38632aa613e9da2781419dfd16ea06fa4ccb20d4 100644 (file)
@@ -90,4 +90,7 @@ dhcpcd_down()
 case "$reason" in
 BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)       dhcpcd_up;;
 PREINIT|EXPIRE|FAIL|IPV4LL|NAK|RELEASE|STOP)           dhcpcd_down;;
+*)
+       logger -p "local0.info" -t "dhcpcd.exe[$$]" "Unhandled DHCP event: ${reason}"
+       ;;
 esac