From 44942b4cb79e30375042ace8d4c8a43ce6010426 Mon Sep 17 00:00:00 2001 From: Kunhui-Li Date: Wed, 25 Aug 2021 11:06:11 +0800 Subject: [PATCH] config_tools: update the regex range of online cpu update the regex range of online cpu from [1-99] to [0-9] in script to make power on/off RTVM normally. Tracked-On: #6482 Signed-off-by: Kunhui-Li --- misc/config_tools/launch_config/com.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/launch_config/com.py b/misc/config_tools/launch_config/com.py index cddc927a1..25999497f 100644 --- a/misc/config_tools/launch_config/com.py +++ b/misc/config_tools/launch_config/com.py @@ -95,7 +95,7 @@ def off_line_cpus(args, vmid, uos_type, config): print(" for j in {}; do".format(' '.join([str(i) for i in pcpu_id_list])), file=config) print(' if [ "cpu"$j = $i ]; then', file=config) print(' online=`cat ${cpu_path}/$i/online`', file=config) - print(' idx=`echo $i | tr -cd "[1-99]"`', file=config) + print(' idx=`echo $i | tr -cd "[0-9]"`', file=config) print(' echo $i online=$online', file=config) print(' if [ "$online" = "1" ]; then', file=config) print(" echo 0 > ${cpu_path}/$i/online", file=config)