From c0b1b7e95c9242a209c0119fb24e282600f49d02 Mon Sep 17 00:00:00 2001 From: taorui Date: Mon, 18 Nov 2024 18:35:54 +0800 Subject: [PATCH] fixed some spelling errors --- selftest/test/nvme/nvme_inject_install.sh | 8 ++++---- selftest/test/nvme/nvme_inject_uninstall.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/selftest/test/nvme/nvme_inject_install.sh b/selftest/test/nvme/nvme_inject_install.sh index f476a0b..49c4547 100644 --- a/selftest/test/nvme/nvme_inject_install.sh +++ b/selftest/test/nvme/nvme_inject_install.sh @@ -111,7 +111,7 @@ if [ -z "${mods}" ]; then else echo "Install the new nvme kernel module successfully." - #servie name + #service name serv_name=$(systemctl -a -t service | grep irq | grep balance | sed -e 's/[^ ]* //' | awk '{print $1}' | awk -F'.' '{print $1}') if [[ -z ${serv_name} ]]; then serv_name=$(chkconfig --list | grep irq | grep balance | awk '{print $1}') @@ -121,18 +121,18 @@ if [ -z "${mods}" ]; then fi if [[ -z ${serv_name} ]]; then - echo Please start irqbalance service mannually. + echo Please start irqbalance service manually. else #echo ${serv_name} serv_status=$(service ${serv_name} status | grep running) #echo ${serv_status} if [[ -z ${serv_status} ]]; then - echo Please start ${serv_name} service mannually.. + echo Please start ${serv_name} service manually.. else sleep 10 service ${serv_name} restart if [[ $? -ne 0 ]]; then - echo Please start ${serv_name} service mannually... + echo Please start ${serv_name} service manually... else if [[ "4.19.90-23.48.v2101.ky10.aarch64" < "4.19" ]]; then irqbalance -p 0 --hintpolicy=exact diff --git a/selftest/test/nvme/nvme_inject_uninstall.sh b/selftest/test/nvme/nvme_inject_uninstall.sh index db0282f..3e7f412 100644 --- a/selftest/test/nvme/nvme_inject_uninstall.sh +++ b/selftest/test/nvme/nvme_inject_uninstall.sh @@ -86,7 +86,7 @@ if [ -n "${standard_nvme}" ]; then else echo "Install the in-kernel nvme kernel module successfully." - #servie name + #service name serv_name=$(systemctl -a -t service 2>/dev/nul | grep irq | grep balance | sed -e 's/[^ ]* //' | awk '{print $1}' | awk -F'.' '{print $1}') if [[ -z ${serv_name} ]]; then serv_name=$(chkconfig --list 2>/dev/nul | grep irq | grep balance | awk '{print $1}') @@ -96,17 +96,17 @@ if [ -n "${standard_nvme}" ]; then fi if [[ -z ${serv_name} ]]; then - echo Please start irqbalance service mannually. + echo Please start irqbalance service manually. else #echo ${serv_name} serv_status=$(service ${serv_name} status 2>/dev/nul | grep running) #echo ${serv_status} if [[ -z ${serv_status} ]]; then - echo Please start ${serv_name} service mannually.. + echo Please start ${serv_name} service manually.. else service ${serv_name} restart 2>/dev/nul if [[ $? -ne 0 ]]; then - echo Please start ${serv_name} service mannually... + echo Please start ${serv_name} service manually... else if [[ "4.19.90-23.48.v2101.ky10.aarch64" < "4.19" ]]; then irqbalance -p 0 --hintpolicy=exact &>/dev/nul -- Gitee