#!/bin/sh

me="[$(printf "%s" "${0}" | xargs basename)]"

DIR="/opt/userdata/chrony"

case "$1" in
  start)
    if [ ! -d "${DIR}" ]; then
      mkdir -p "${DIR}"
      chown chrony: "${DIR}"
    fi
    ;;
  stop)
    ;;
  *)
    printf "%s Usage: %s (start|stop)\\n" "${me}" "$0"
    exit 1
esac

exit 0
