$(man_MANS) \
$(manhtml) \
tools/kvm-ifup \
+ tools/kvm-ifdown \
tools/vif-ganeti \
tools/net-common \
tools/users-setup \
myexeclib_SCRIPTS = \
daemons/daemon-util \
tools/kvm-ifup \
+ tools/kvm-ifdown \
tools/vif-ganeti \
tools/net-common \
$(pkglib_python_scripts) \
devel/upload \
devel/webserver \
tools/kvm-ifup.in \
+ tools/kvm-ifdown.in \
tools/vif-ganeti.in \
tools/net-common.in \
tools/vcluster-setup.in \
sed -f $(REPLACE_VARS_SED) < $< > $@
chmod +x $@
+tools/kvm-ifdown: tools/kvm-ifdown.in $(REPLACE_VARS_SED)
+ sed -f $(REPLACE_VARS_SED) < $< > $@
+ chmod +x $@
+
tools/vif-ganeti: tools/vif-ganeti.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@
chmod +x $@
IMPORT_EXPORT_DAEMON = _autoconf.PKGLIBDIR + "/import-export"
KVM_CONSOLE_WRAPPER = _autoconf.PKGLIBDIR + "/tools/kvm-console-wrapper"
KVM_IFUP = _autoconf.PKGLIBDIR + "/kvm-ifup"
+KVM_IFDOWN = _autoconf.PKGLIBDIR + "/kvm-ifdown"
PREPARE_NODE_JOIN = _autoconf.PKGLIBDIR + "/prepare-node-join"
NODE_DAEMON_SETUP = _autoconf.PKGLIBDIR + "/node-daemon-setup"
XEN_CONSOLE_WRAPPER = _autoconf.PKGLIBDIR + "/tools/xen-console-wrapper"
--- /dev/null
+#!/bin/bash
+#
+
+# Copyright (C) 2011, 2012 Google Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+source @PKGLIBDIR@/net-common
+
+# Execute the user-supplied network script, if applicable
+if [ -x "$CONF_DIR/ganeti-kvm-ifdown" ]; then
+ exec $CONF_DIR/ganeti-kvm-ifdown
+fi
+
+exit 0