Skip to content

Commit 6765449

Browse files
committed
[sysinfo.sh] Minor fixes
- tabs - alsa_output_mode - deezersvc
1 parent f4363f9 commit 6765449

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

www/util/sysinfo.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ AUDIO_PARAMETERS() {
114114
echo -e "\nAirPlay receiver\t= $airplaysvc\c"
115115
fi
116116
if [ $(($feat_bitmask & $FEAT_SPOTIFY)) -ne 0 ]; then
117-
echo -e "\nSpotify Connect\t= $spotifysvc\c"
117+
echo -e "\nSpotify Connect\t\t= $spotifysvc\c"
118118
fi
119119
if [ $(($feat_bitmask & $FEAT_DEEZER)) -ne 0 ]; then
120-
echo -e "\nDeezer Connect\t= $deezersvc\c"
120+
echo -e "\nDeezer Connect\t\t= $deezersvc\c"
121121
fi
122122
if [ $(($feat_bitmask & $FEAT_SQUEEZELITE)) -ne 0 ]; then
123123
echo -e "\nSqueezelite\t\t= $slsvc\c"
@@ -661,7 +661,15 @@ dlnaname=${arr[7]}
661661
[[ "${arr[8]}" = "1" ]] && airplaysvc="On" || airplaysvc="Off"
662662
[[ "${arr[9]}" = "1" ]] && upnpsvc="On" || upnpsvc="Off"
663663
[[ "${arr[10]}" = "1" ]] && dlnasvc="On" || dlnasvc="Off"
664-
[[ "${arr[11]}" = "plughw" ]] && alsa_output_mode="Default (plughw)" || alsa_output_mode="Direct (hw)"
664+
if [[ "${arr[11]}" = "plughw" ]]; then
665+
alsa_output_mode="Default (plughw)"
666+
elif [[ "${arr[11]}" = "hw" ]]; then
667+
alsa_output_mode="Direct (hw)"
668+
elif [[ "${arr[11]}" = "iec958" ]]; then
669+
alsa_output_mode="IEC958 (iec958)"
670+
else
671+
alsa_output_mode="Unknown (error)"
672+
fi
665673
paactive=${arr[12]}
666674
[[ "${arr[13]}" = "1" ]] && autoplay="On" || autoplay="Off"
667675
if [[ -f "/opt/RoonBridge/start.sh" ]]; then
@@ -758,7 +766,7 @@ elif [[ "${arr[81]}" = "31536000000" ]]; then
758766
library_recently_added="1 Year"
759767
fi
760768
btactive=${arr[82]}
761-
deezersvc=${arr[83]}
769+
[[ "${arr[83]}" = "1" ]] && deezersvc="On" || deezersvc="Off"
762770
deezername=${arr[84]}
763771
dsi_scn_type=${arr[85]}
764772
dsi_scn_rotate=${arr[86]}

0 commit comments

Comments
 (0)