blob: 8c52d76f9f6216bc91d5804b51357dabb69f03c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|