From: Daniel Golle Date: Wed, 13 Apr 2022 15:51:58 +0000 (+0100) Subject: netifd: relax check in dhcp proto handler X-Git-Tag: v22.03.0-rc1~37 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7ea412ef5a2871bb42136f914206e15b8cae04e1;p=openwrt%2Fstaging%2Fhauke.git netifd: relax check in dhcp proto handler Checking whether /sbin/udhcpc is a symbolic link breaks using the DHCP proto handler inside procd-ujail where bind-mounts are used for the resolved link. Check whether /sbin/udhcpc is executable instead to allow using the proto handler for DHCP-provisioned containers. Signed-off-by: Daniel Golle (cherry picked from commit c5f113c43f43c20555298c8500bf91bffbe1f58b) --- diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh index 3034b2ba68..ea6d872eb4 100755 --- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh +++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh @@ -1,6 +1,6 @@ #!/bin/sh -[ -L /sbin/udhcpc ] || exit 0 +[ -x /sbin/udhcpc ] || exit 0 . /lib/functions.sh . ../netifd-proto.sh