Skip to content

Feature request, Allow additional directories included in config with include /etc/finit.d/*.conf #184

Description

@hongkongkiwi

Hi there,

I would like to use the "include" feature to include another finit.d directory.

In my case, I would like to include both /etc/finit.d and /mnt/flash/etc/finit.d. Users are only allowed to edit files in /mnt/flash/etc/finit.d .

Could I propose that the "include" config also allows directories as well as files? or that we have a separate includedir config.

Can I also suggest that we have a '-' flag (like with env files), so we can allow it to include without this (and just ignore the file or directory being missing) or if '-' is passed then it will error if the include file or directory is not passed.

So it could be like this:

include -/mnt/flash/etc/finit.conf
include /mnt/flash/etc/finit-is-optional.conf
includedir -/mnt/flash/etc/finit.d
includedir /mnt/flash/etc/finit.d-dir-is-optional

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions