netifd: relax check in dhcp proto handler
authorDaniel Golle <daniel@makrotopia.org>
Wed, 13 Apr 2022 15:51:58 +0000 (16:51 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 13 Apr 2022 18:51:00 +0000 (19:51 +0100)
commitc5f113c43f43c20555298c8500bf91bffbe1f58b
treec0c46d1a06a0768705913fa23b6ae732d30697ee
parent2c8873033e3c0b5a5e8f6080ea3a73fde6a55f39
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 <daniel@makrotopia.org>
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh