#!/bin/sh set -e # Create the audio directory if it doesn't exist mkdir -p /tmp/audio # Create the named pipes if they don't exist for pipe in spotify.pcm airplay.pcm mopidy.pcm; do path="/tmp/audio/$pipe" if [ ! -p "$path" ]; then mkfifo "$path" echo "Created pipe: $path" fi done echo "All audio pipes ready. Starting Mopidy..." exec "$@"