Add patch_loader_conf_d function (#247)
* Add patch_loader_conf_d function
Add support to copy pre-defined conf files to the ISO's /boot/loader.conf.d directory.
* Remove local from base-setting.sh
Fix CONFIG_DIR to check system-wide location first
The CONFIG_DIR was hardcoded to "$SCRIPT_DIR/cardDetect", causing the
script to look for configuration templates in /usr/local/bin/cardDetect
when installed via the port, rather than the correct system-wide location
at /usr/local/etc/X11/cardDetect.
This change updates the CONFIG_DIR initialization to:
1. Check /usr/local/etc/X11/cardDetect first (system-wide installation)
2. Fall back to $SCRIPT_DIR/cardDetect (development/portable usage)
This matches the documented dual-location behavior in README.md and
ensures the script works correctly when installed via the x11/xconfig
port, which installs config templates to /usr/local/etc/X11/cardDetect
per the Makefile.
The script now functions correctly in both scenarios:
- Production: Installed via pkg/port with configs in /usr/local/etc/X11
- Development: Run in-tree with configs in ./cardDetect
[2 lines not shown]
devel/kodi-platform: Bump after update multimedia/kodi
While here replace PORTVERSION with DISTVERSION.
PR: 290895
Approved by: decke (maintainer, implicit)