From: Ben Pfaff Date: Fri, 10 Jun 2011 20:10:28 +0000 (-0700) Subject: xenserver: Don't require confirmation to restart vswitch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18547b9ebc685c90274471aa938018a47af1499e;p=openvswitch xenserver: Don't require confirmation to restart vswitch. Early development versions of ovs-vswitchd didn't always restart successfully, so we required confirmation if "restart" was invoked interactively. Recent versions do just fine, so drop the confirmation prompt. Signed-off-by: Ben Pfaff --- diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index bd64cc70..6917fba8 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -266,31 +266,6 @@ function stop_daemon { fi } -function restart_approval { - if test ! -t 0; then - # Don't prompt if invoked non-interactively. - return 0 - fi - cat <