Restart web interface if sound card settings have been changed
@@ -381,16 +381,24 @@ reconfigure_recording() {
# Reconfigure Beocreate
reconfigure_beocreate() {
+ UPDATE=0
# Update card type
if [ "$CARD" != "$CURRENT_CARD" ]; then
/bin/node /opt/beocreate/beo-system/configure.js system cardType "$CARD"
echo " updated card type"
+ UPDATE=1
fi
# Update mixer control
if [ "$MIXER_CONTROL" != "$CURRENT_MIXER_CONTROL" ]; then
/bin/node /opt/beocreate/beo-system/configure.js sound mixer $MIXER_CONTROL
echo " updated mixer"
+ UPDATE=1
+ fi
+
+ if [ "$UPDATE" == "1" ]; then
+ systemctl restart beocreate2
+ echo " restarting Beocreate"
fi
}
