summaryrefslogtreecommitdiff
path: root/nonsystemd/opentmpfiles/tmpfiles-hook
blob: 786616b899661606d33a48de4af4c70156ac50a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

each_conf() {
  while read -r f; do
    "$@" "$(basename "$f")"
  done
}

case $1 in
  tmpfiles) each_conf /usr/bin/tmpfiles --create ;;
  *) echo >&2 "  Invalid operation '$1'"; exit 1 ;;
esac

exit 0