Browse Source

squeezelite: Fix null arg test in startup script

Signed-off-by: Ted Hess <thess@kitschensync.net>
lilik-openwrt-22.03
Ted Hess 9 years ago
parent
commit
46432e174b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      sound/squeezelite/files/squeezelite.init

+ 2
- 2
sound/squeezelite/files/squeezelite.init View File

@ -52,10 +52,10 @@ make_cmdline() {
cmdline="$cmdline -M $model_name"
config_get interface options interface ""
[ -n $interface ] && cmdline="$cmdline -I $interface"
[ -n "$interface" ] && cmdline="$cmdline -I $interface"
config_get device options device ""
[ -n $device ] && cmdline="$cmdline -o $device"
[ -n "$device" ] && cmdline="$cmdline -o $device"
config_get alsa_buffer options alsa_buffer 200
[ $alsa_buffer -eq 0 ] && alsa_buffer="200"


Loading…
Cancel
Save