diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-03-01 18:38:55 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-03-02 09:48:41 +0100 |
commit | 175b2623288957dc7087278d1e78a7eedb077f8f (patch) | |
tree | 0c092c0f12d8268fc9e304b5d0ee26a5f75cab68 /package/network/config/netifd/files | |
parent | 9046e921aff8947600567134ad10d6451a1adaeb (diff) | |
download | upstream-175b2623288957dc7087278d1e78a7eedb077f8f.tar.gz upstream-175b2623288957dc7087278d1e78a7eedb077f8f.tar.bz2 upstream-175b2623288957dc7087278d1e78a7eedb077f8f.zip |
netifd: add udhcpc link check to dhcp shell handler script
Fixes the assumption the busybox udhcpc applet is always enabled; in case
the symbolic link check fails the DHCP shell handler script will exit and
as result the DHCP protocol handler will not be registered in netifd.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/network/config/netifd/files')
-rwxr-xr-x | package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 2 |
1 files changed, 2 insertions, 0 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 afcfba9f49..a2b0ccedbf 100755 --- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh +++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh @@ -1,5 +1,7 @@ #!/bin/sh +[ -L /sbin/udhcpc ] || exit 0 + . /lib/functions.sh . ../netifd-proto.sh init_proto "$@" |