summaryrefslogtreecommitdiff
path: root/deployment_scripts/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deployment_scripts/install.sh')
-rw-r--r--deployment_scripts/install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/deployment_scripts/install.sh b/deployment_scripts/install.sh
index 0b8332a..471e066 100644
--- a/deployment_scripts/install.sh
+++ b/deployment_scripts/install.sh
@@ -39,11 +39,11 @@ else
39 dpkg -i openvswitch-switch-dpdk_2.5.90-1_amd64.deb 39 dpkg -i openvswitch-switch-dpdk_2.5.90-1_amd64.deb
40 40
41 dpdk_pages=$(($dpdk_socket_mem / 2)) 41 dpdk_pages=$(($dpdk_socket_mem / 2))
42 sed "s/#*\(NR_2M_PAGES=\).*/\1${dpdk_pages}/" /etc/dpdk/dpdk.conf 42 sed -i "s/[# ]*\(NR_2M_PAGES=\).*/\1${dpdk_pages}/" /etc/dpdk/dpdk.conf
43 service dpdk start 43 service dpdk start
44 44
45 ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true 45 ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
46 [ -n $dpdk_socket_mem ] && vs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem="$dpdk_socket_mem" 46 [ -n $dpdk_socket_mem ] && ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem="$dpdk_socket_mem"
47 47
48 service openvswitch-switch restart 48 service openvswitch-switch restart
49 fi 49 fi