#!/bin/ash set -o nounset # Set "DISK_VOLUME" variable and create "mediatomb" subdir in hdd if it doesn't exist source /usr/bin/set-hdd-var.src mediatomb if [ ! -f "${DISK_VOLUME}/mediatomb/mediatomb.db" ]; then cp /etc/mediatomb/mediatomb.db "${DISK_VOLUME}/mediatomb/mediatomb.db" fi if [ ! -f "${DISK_VOLUME}/mediatomb/config.xml" ]; then cp /etc/mediatomb/config.xml "${DISK_VOLUME}/mediatomb/config.xml" fi /usr/bin/mediatomb -p 49152 -m "${DISK_VOLUME}" -f mediatomb -P /var/run/mediatomb.pid & /usr/bin/logger -p user.info "mediatomb started"