Browse Source

init.d: ignore dirs in custom.d

pull/666/head
bol-van 6 months ago
parent
commit
20e6ba721a
  1. 1
      common/custom.sh

1
common/custom.sh

@ -16,6 +16,7 @@ custom_runner()
n=$(ls "$CUSTOM_DIR/custom.d" | wc -c | xargs)
[ "$n" = 0 ] || {
for script in "$CUSTOM_DIR/custom.d/"*; do
[ -f "$script" ] || continue
unset -f $FUNC
. "$script"
existf $FUNC && $FUNC "$@"

Loading…
Cancel
Save