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:15:33 +0200 |
commit | f6cc00650cbdc887a6b7557e6934dec3a04e31da (patch) | |
tree | 21ea6a6c2c1e55f7c6f8cbe5261b989a5eb2c2be /package/network/ipv6/odhcp6c/files/dhcpv6.script | |
parent | 467c32600cc575fcb67c5f01ad32e02141220ceb (diff) | |
download | upstream-f6cc00650cbdc887a6b7557e6934dec3a04e31da.tar.gz upstream-f6cc00650cbdc887a6b7557e6934dec3a04e31da.tar.bz2 upstream-f6cc00650cbdc887a6b7557e6934dec3a04e31da.zip |
odhcp6c: read 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:
b4f3d93b5 odhcp6c: add a odhcp6c.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/ipv6/odhcp6c/files/dhcpv6.script')
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.script | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script index 28955a358f..b1a99ed986 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script @@ -237,5 +237,8 @@ esac # user rules [ -f /etc/odhcp6c.user ] && . /etc/odhcp6c.user "$@" +for f in /etc/odhcp6c.user.d/*; do + [ -f "$f" ] && (. "$f" "$@") +done exit 0 |