diff options
author | Leon M. George <leon@georgemail.eu> | 2021-03-23 11:02:36 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2021-04-17 21:13:37 +0200 |
commit | 467c32600cc575fcb67c5f01ad32e02141220ceb (patch) | |
tree | 142d8fd6bb229ccd48e333ca64ea4472e904f9be /package/network/config/netifd/files | |
parent | 28623cab32c0ca4e709375f80288471d5ca06ee0 (diff) | |
download | upstream-467c32600cc575fcb67c5f01ad32e02141220ceb.tar.gz upstream-467c32600cc575fcb67c5f01ad32e02141220ceb.tar.bz2 upstream-467c32600cc575fcb67c5f01ad32e02141220ceb.zip |
netifd: read udhcpc user scripts from directory
Placeholder DHCP user scripts were added recently.
These files make package-based installations of such scripts more difficult.
Pull user callbacks from directories instead to allow packages and users to
install co-existing scripts more easily.
References:
130118f7a netifd: add a udhcpc.user placeholder script
Signed-off-by: Leon M. George <leon@georgemail.eu>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
Diffstat (limited to 'package/network/config/netifd/files')
-rwxr-xr-x | package/network/config/netifd/files/lib/netifd/dhcp.script | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script index 6585b641d6..e46005d84c 100755 --- a/package/network/config/netifd/files/lib/netifd/dhcp.script +++ b/package/network/config/netifd/files/lib/netifd/dhcp.script @@ -112,5 +112,8 @@ esac # user rules [ -f /etc/udhcpc.user ] && . /etc/udhcpc.user "$@" +for f in /etc/udhcpc.user.d/*; do + [ -f "$f" ] && (. "$f" "$@") +done exit 0 |