dhcpcd.exe: Reformat the reason dispatcher

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2022-12-01 17:23:12 +00:00
committed by Peter Müller
parent 1f568cc0ed
commit e3da491238

View File

@@ -175,13 +175,17 @@ setup_qmi() {
return 0 return 0
} }
case "$reason" in case "${reason}" in
BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) dhcpcd_up;; BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
PREINIT|EXPIRE|FAIL|IPV4LL|NAK|RELEASE|STOP) dhcpcd_down;; dhcpcd_up
3RDPARTY) ;;
PREINIT|EXPIRE|FAIL|IPV4LL|NAK|RELEASE|STOP)
dhcpcd_down
;;
3RDPARTY)
dhcpcd_3rdparty dhcpcd_3rdparty
;; ;;
*) *)
logger -p "local0.info" -t "dhcpcd.exe[$$]" "Unhandled DHCP event: ${reason}" logger -p "local0.info" -t "dhcpcd.exe[$$]" "Unhandled DHCP event: ${reason}"
;; ;;
esac esac