diff --git a/root/etc/cont-init.d/02-script-setup.bash b/root/etc/cont-init.d/02-script-setup.bash new file mode 100644 index 0000000..c039415 --- /dev/null +++ b/root/etc/cont-init.d/02-script-setup.bash @@ -0,0 +1,15 @@ +#!/usr/bin/with-contenv bash + +# Remove existing LAD start script +if [ -f "/config/scripts/AudioPostProcessing.bash" ]; then + rm "/config/scripts/AudioPostProcessing.bash" + sleep 0.1 +fi + +# Copy AudioPostProcessing into scripts directory +if [ ! -f "/config/scripts/AudioPostProcessing.bash" ]; then + cp "/scripts/AudioPostProcessing.bash" "/config/scripts/AudioPostProcessing.bash" + chmod 0777 "/config/scripts/AudioPostProcessing.bash" +fi + +exit 0