Browse Source

Mend install script

* sed regexp & opt to edit a dpdk.conf
* ovs-vsctl cmd errata

Change-Id: I10e489a86aa8c4d3910e60bc68cae89e343bdd2d
tags/10.0-eol
Michael Polenchuk 2 years ago
parent
commit
7d02f4c328
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      deployment_scripts/install.sh

+ 2
- 2
deployment_scripts/install.sh View File

@@ -39,11 +39,11 @@ else
39 39
         dpkg -i openvswitch-switch-dpdk_2.5.90-1_amd64.deb
40 40
 
41 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 43
         service dpdk start
44 44
 
45 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 48
         service openvswitch-switch restart
49 49
     fi

Loading…
Cancel
Save