From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 23/29] dhcpcd.exe: Reformat the reason dispatcher Date: Thu, 01 Dec 2022 17:23:12 +0000 Message-ID: <20221201172318.3166615-23-michael.tremer@ipfire.org> In-Reply-To: <20221201172318.3166615-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2442214809254042547==" List-Id: --===============2442214809254042547== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- src/initscripts/networking/dhcpcd.exe | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/initscripts/networking/dhcpcd.exe b/src/initscripts/networki= ng/dhcpcd.exe index 22ea9aaf7..ee4b00dbd 100644 --- a/src/initscripts/networking/dhcpcd.exe +++ b/src/initscripts/networking/dhcpcd.exe @@ -175,13 +175,17 @@ setup_qmi() { return 0 } =20 -case "$reason" in -BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) dhcpcd_up;; -PREINIT|EXPIRE|FAIL|IPV4LL|NAK|RELEASE|STOP) dhcpcd_down;; -3RDPARTY) - dhcpcd_3rdparty - ;; -*) - logger -p "local0.info" -t "dhcpcd.exe[$$]" "Unhandled DHCP event: ${reason= }" - ;; +case "${reason}" in + BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) + dhcpcd_up + ;; + PREINIT|EXPIRE|FAIL|IPV4LL|NAK|RELEASE|STOP) + dhcpcd_down + ;; + 3RDPARTY) + dhcpcd_3rdparty + ;; + *) + logger -p "local0.info" -t "dhcpcd.exe[$$]" "Unhandled DHCP event: ${reaso= n}" + ;; esac --=20 2.30.2 --===============2442214809254042547==--