From 2884d1072c78b0f23511c201321192c35125e704 Mon Sep 17 00:00:00 2001 From: Li Zhang Date: Mon, 25 Apr 2022 22:18:31 +0800 Subject: [PATCH] wsdd2: Remove extra comma, which breaks the key-value pair of the '-b' parameter Signed-off-by: Li Zhang (cherry picked from commit 5fc06d939fb9a37752b7665eca1355e23aa4e85f) --- net/wsdd2/files/wsdd2.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/wsdd2/files/wsdd2.init b/net/wsdd2/files/wsdd2.init index b281ed8d8c..b9d01a8c3b 100644 --- a/net/wsdd2/files/wsdd2.init +++ b/net/wsdd2/files/wsdd2.init @@ -59,12 +59,12 @@ start_service() { local board_sku [ -e /tmp/sysinfo/board_name ] && { - board_vendor="$(awk -F',' '{print $1}' /tmp/sysinfo/board_name | tr ' ' '_' | tr -d ' \n')" - board_sku="$(awk -F',' '{print $2}' /tmp/sysinfo/board_name | tr ' ' '_' | tr -d ' \n')" + board_vendor="$(awk -F',' '{print $1}' /tmp/sysinfo/board_name | tr ' ' '_' | tr ',' '-' | tr -d ' \n')" + board_sku="$(awk -F',' '{print $2}' /tmp/sysinfo/board_name | tr ' ' '_' | tr ',' '-' | tr -d ' \n')" } [ -e /tmp/sysinfo/model ] && { - board_model="$(awk -F':' '{print $1}' /tmp/sysinfo/model | tr ' ' '_' | tr -d ' \n')" + board_model="$(awk -F':' '{print $1}' /tmp/sysinfo/model | tr ' ' '_' | tr ',' '-' | tr -d ' \n')" } [ -n "$board_vendor" ] && [ -n "$board_model" ] && { -- 2.30.2