#!/bin/sh for MINIDLNA_MEDIA_DIR_CURRENT in $MINIDLNA_MEDIA_DIR; do local MINIDLNA_MEDIA_DIR_SHORT="$(echo $MINIDLNA_MEDIA_DIR_CURRENT | grep -vE '^ *#|^ *;|^ *$' | sed 's/.*,//g' )" [ -d "$MINIDLNA_MEDIA_DIR_SHORT" ] && echo "media_dir=$MINIDLNA_MEDIA_DIR_CURRENT" done if [ -n "$MINIDLNA_NETWORK_INTERFACE" ]; then echo "network_interface=$MINIDLNA_NETWORK_INTERFACE" MINIDLNA_NIF=$MINIDLNA_NETWORK_INTERFACE else MINIDLNA_NIF=lan fi MINIDLNA_NIP="$(ifconfig $MINIDLNA_NIF | sed -ne 's/^ *inet addr: *\([0-9.]*\) *.*/\1/p')" [ -z "$MINIDLNA_NIP" ] && MINIDLNA_NIP="192.168.178.1" cat <