Remove old SED code when handling JSON files
@@ -343,21 +343,13 @@ reconfigure_recording() {
reconfigure_beocreate() {
# Update card type
if [ "$CARD" != "$CURRENT_CARD" ]; then
- if [ -f "/opt/beocreate/beo-system/configure.js" ]; then
/bin/node /opt/beocreate/beo-system/configure.js system cardType "$CARD"
- else
- sed -i "s/\"cardType\".*/\"cardType\":\"$CARD_SED_SPACES\",/g" /etc/beocreate/system.json
- fi
echo " updated card type"
fi
# Update mixer control
if [ "$MIXER_CONTROL" != "$CURRENT_MIXER_CONTROL" ]; then
- if [ -f "/opt/beocreate/beo-system/configure.js" ]; then
/bin/node /opt/beocreate/beo-system/configure.js sound mixer $MIXER_CONTROL
- else
- sed -i "s/\"mixer\".*/\"mixer\":\"$MIXER_CONTROL\",/g" /etc/beocreate/sound.json
- fi
echo " updated mixer"
fi
}
