summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/qemukvm/files/ifdown
diff options
context:
space:
mode:
authorMichael Janczyk2010-03-22 23:50:43 +0100
committerMichael Janczyk2010-03-22 23:50:43 +0100
commitd50ca9e27cfb7fd8aba92ec557eb07944f3a33ad (patch)
tree08617623a0ef1c7c7d6828d6a4034fbd298c1567 /os-plugins/plugins/qemukvm/files/ifdown
parentsmall bugfix regarding xmlfile and paths. (diff)
downloadcore-d50ca9e27cfb7fd8aba92ec557eb07944f3a33ad.tar.gz
core-d50ca9e27cfb7fd8aba92ec557eb07944f3a33ad.tar.xz
core-d50ca9e27cfb7fd8aba92ec557eb07944f3a33ad.zip
qemukvm weiter, sollte laufen (ungetestet), noch anpassungen an scripten notwendig (XX_qemu.., ifup), sudoers, /dev/fb0 für jedermann zugreifbar
Diffstat (limited to 'os-plugins/plugins/qemukvm/files/ifdown')
-rw-r--r--os-plugins/plugins/qemukvm/files/ifdown31
1 files changed, 31 insertions, 0 deletions
diff --git a/os-plugins/plugins/qemukvm/files/ifdown b/os-plugins/plugins/qemukvm/files/ifdown
new file mode 100644
index 00000000..8c52d76f
--- /dev/null
+++ b/os-plugins/plugins/qemukvm/files/ifdown
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Copyright (c) 2009 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your suggestions, praise, or complaints to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org/
+# -----------------------------------------------------------------------------
+# qemu-ifup
+# - Script used for network cleanup of qemukvm in stage4
+# -----------------------------------------------------------------------------
+
+# Clean up script
+
+case "$1" in
+ tap1)
+ # Bringing down the dhcp server
+ killall udhcpd 2>/dev/null
+ #iptables -t nat -D POSTROUTING -o br0 -j MASQUERADE 2>/dev/null
+ ;;
+ tap2)
+ # Bringing down the dhcp server
+ killall udhcpd 2>/dev/null
+ ;;
+esac
+
+# Produce a clean exit status
+exit 0