summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/rapid/check_prox_system_setup.sh
diff options
context:
space:
mode:
authorPatrice Buriez <patrice.buriez@intel.com>2019-07-05 14:19:07 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-07-05 14:19:07 +0000
commit36fdd91214ab495f634933f241ace985ef03e3a6 (patch)
tree0423cd2bf724f6b601ae6e33dfdb3bb002aa75a0 /VNFs/DPPD-PROX/helper-scripts/rapid/check_prox_system_setup.sh
parent19795c2fc3180e8a0dae4373d8be2f5c0656fc8c (diff)
parentd55e457cfc09e84c0a3fb8c32a21517c4388a131 (diff)
Merge changes from topic 'june_release'
* changes: Some fixes after code review Cosmetic change when printing warnings Multiple changes for June release
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/check_prox_system_setup.sh')
-rwxr-xr-xVNFs/DPPD-PROX/helper-scripts/rapid/check_prox_system_setup.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/check_prox_system_setup.sh b/VNFs/DPPD-PROX/helper-scripts/rapid/check_prox_system_setup.sh
index 48999510..7d66bd39 100755
--- a/VNFs/DPPD-PROX/helper-scripts/rapid/check_prox_system_setup.sh
+++ b/VNFs/DPPD-PROX/helper-scripts/rapid/check_prox_system_setup.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
##
-## Copyright (c) 2010-2018 Intel Corporation
+## Copyright (c) 2010-2019 Intel Corporation
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
@@ -26,16 +26,16 @@ then
case $line in
isolated_cores=1-$MAXCOREID*)
echo "Isolated CPU(s) OK, no reboot: $line">>$logfile
- modprobe uio
- insmod /root/dpdk/build/kmod/igb_uio.ko
+ modprobe uio
+ insmod /root/dpdk/build/kmod/igb_uio.ko
exit 0
;;
isolated_cores=*)
echo "Isolated CPU(s) NOK, change the config and reboot: $line">>$logfile
sed -i "/^isolated_cores=.*/c\isolated_cores=1-$MAXCOREID" $filename
- tuned-adm profile realtime-virtual-guest
+ tuned-adm profile realtime-virtual-guest
reboot
- exit 0
+ exit 0
;;
*)
echo "$line"
@@ -43,9 +43,10 @@ then
esac
done < "$filename"
echo "isolated_cores=1-$MAXCOREID" >> $filename
- echo "No Isolated CPU(s) defined in config, line added: $line">>$logfile
- tuned-adm profile realtime-virtual-guest
+ echo "No Isolated CPU(s) defined in config, line added: $line">>$logfile
+ tuned-adm profile realtime-virtual-guest
reboot
else
echo "$filename not found.">>$logfile
fi
+