diff options
-rw-r--r-- | sh/gendepends.sh.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in index 5852c772..3000dca1 100644 --- a/sh/gendepends.sh.in +++ b/sh/gendepends.sh.in @@ -53,11 +53,21 @@ depend() { : } -_done_dirs= -for _dir in \ +dirs=" @SYSCONFDIR@/init.d \ @PKG_PREFIX@/etc/init.d \ @LOCAL_PREFIX@/etc/init.d +" + +if [ "${RC_USER_SERVICES}" = "YES" ]; then + dirs=" + @SYSCONFDIR@/init.d/user.d + ${XDG_CONFIG_HOME:-${HOME}/.config}/openrc/init.d + " +fi + +_done_dirs= +for _dir in ${dirs} do [ -d "$_dir" ] || continue @@ -127,3 +137,4 @@ do ) done done +unset dirs |