]> git.proxmox.com Git - mirror_ovs.git/blobdiff - utilities/ovs-ctl.in
Revert "utilities/ovs-ctl: Force removal of ip_gre/gre"
[mirror_ovs.git] / utilities / ovs-ctl.in
index 1df56c4a530f377435d9f5f4138bcc61ae9fb3ee..ef06dd967e1e2aad6ef90622f07a8a571aeab7a1 100755 (executable)
@@ -72,7 +72,7 @@ set_hostname () {
 set_system_ids () {
     set ovs_vsctl set Open_vSwitch .
 
-    OVS_VERSION=`ovs-vswitchd --version | sed 's/.*) //;1q'`
+    OVS_VERSION=`ovs-vswitchd --version | awk '/Open vSwitch/{print $NF}'`
     set "$@" ovs-version="$OVS_VERSION"
 
     case $SYSTEM_ID in