diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-04-13 16:51:58 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-04-13 19:51:00 +0100 |
commit | c5f113c43f43c20555298c8500bf91bffbe1f58b (patch) | |
tree | c0c46d1a06a0768705913fa23b6ae732d30697ee /package | |
parent | 2c8873033e3c0b5a5e8f6080ea3a73fde6a55f39 (diff) | |
download | upstream-c5f113c43f43c20555298c8500bf91bffbe1f58b.tar.gz upstream-c5f113c43f43c20555298c8500bf91bffbe1f58b.tar.bz2 upstream-c5f113c43f43c20555298c8500bf91bffbe1f58b.zip |
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>
Diffstat (limited to 'package')
-rwxr-xr-x | package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |