Set HEADPHONES_FIRSTRUN to true if config is not found, to trigger it's creation

This commit is contained in:
RudolfRendier 2011-08-18 21:37:19 +02:00
parent ec8521b2bd
commit 4c9c4c6de4

View File

@ -326,6 +326,10 @@ python $ADDON_DIR/bin/ini_tool --action=write \
if [ -z "$HEADPHONES_IP" ]; then if [ -z "$HEADPHONES_IP" ]; then
HEADPHONES_IP="0.0.0.0" HEADPHONES_IP="0.0.0.0"
fi fi
if [ ! -f "$HEADPHONES_SETTINGS" ]; then
HEADPHONES_FIRSTRUN="yes"
fi
if [ "$HEADPHONES_FIRSTRUN" = "yes" ]; then if [ "$HEADPHONES_FIRSTRUN" = "yes" ]; then
write_headphones_ini General http_port $HEADPHONES_PORT write_headphones_ini General http_port $HEADPHONES_PORT