ovs-ctl.in: Don't execute the restore ofport script in some cases.
authorGurucharan Shetty <gshetty@nicira.com>
Tue, 12 Feb 2013 17:29:55 +0000 (09:29 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 12 Feb 2013 22:43:50 +0000 (14:43 -0800)
While upgrading from openvswitch1.10, we need not restore ofports
across force-reload-kmod.

This patch fixes a bug wherein 'force-reload-kmod' command
tried to execute an empty script that did not have '+x' in
file permissions.

Bug #15067
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
utilities/ovs-ctl.in

index 8288e13..e186e71 100755 (executable)
@@ -287,6 +287,7 @@ save_ofports_if_required () {
                 "${script_ofports}" script_ofports
             ;;
         *)
+            script_ofports=""
             ;;
     esac
 }