From 3379935118b8e25e7e8e4638761e8bb9ccc87ac5 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 4 Mar 2020 19:17:56 -0500 Subject: [PATCH] Create 02-script-setup.bash --- root/etc/cont-init.d/02-script-setup.bash | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 root/etc/cont-init.d/02-script-setup.bash 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