tmpfiles-hook 216 B

123456789101112131415
  1. #!/bin/sh -e
  2. each_conf() {
  3. while read -r f; do
  4. "$@" "$(basename "$f")"
  5. done
  6. }
  7. case $1 in
  8. tmpfiles) each_conf /usr/bin/tmpfiles --create ;;
  9. *) echo >&2 " Invalid operation '$1'"; exit 1 ;;
  10. esac
  11. exit 0