#!/bin/sh [ -r /etc/options.cfg ] && . /etc/options.cfg cat << EOF ##do not change cert_path = /tmp/flash/opendd/opendd.pem runasdaemon = 0 pidfile_path = /var/run/opendd.pid use_syslog = 1 ##accounts servername = $OPENDD_SERVER hostname = $OPENDD_HOST username = $OPENDD_USER password = $OPENDD_PASS ##advanced wildcard = $OPENDD_WILDCARD EOF [ -n "$OPENDD_MX" ] && echo "mx = $OPENDD_MX" cat << EOF backupmx = $OPENDD_BACKUPMX offline = $OPENDD_OFFLINE ##depends on make! EOF if [ "$FREETZ_PACKAGE_OPENDD_WITH_SSL" == "y" ]; then echo "use_ssl = $OPENDD_USE_SSL" else echo "use_ssl = 0" fi if [ "$OPENDD_EMAIL_ENABLED" == "yes" ]; then if [ -z "$OPENDD_EMAIL_SENDER" ]; then echo "mailfrom = $OPENDD_EMAIL_FROM" else echo "mailfrom = \"$OPENDD_EMAIL_SENDER\" <$OPENDD_EMAIL_FROM>" fi cat << EOF ##email mailto = $OPENDD_EMAIL_TO smtpservername = $OPENDD_EMAIL_SERVER smtpserverport = $OPENDD_EMAIL_PORT smtpauthuser = $OPENDD_EMAIL_USER smtpauthpwd = $OPENDD_EMAIL_PASS EOF fi