libvirt-guests ignores ON_SHUTDOWN option
Commit 08071ec0 contained a typo, superfluous /
prefix:
if [ "/x$ON_SHUTDOWN" = xshutdown ]; then
As a result, libvirt-guests ignores ON_SHUTDOWN
option. Let's get this fixed.
--- a/tools/libvirt-guests.sh.in
+++ b/tools/libvirt-guests.sh.in
@@ -444,7 +444,7 @@ stop() {
# last stop was not followed by start
[ -f "$LISTFILE" ] && return 0
- if [ "/x$ON_SHUTDOWN" = xshutdown ]; then
+ if [ "x$ON_SHUTDOWN" = xshutdown ]; then
suspending=false
if [ $SHUTDOWN_TIMEOUT -lt 0 ]; then
gettext "SHUTDOWN_TIMEOUT must be equal or greater than 0"
Edited by Bronek Kozicki