summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh
diff options
context:
space:
mode:
authorDirk2012-11-27 21:57:10 +0100
committerDirk2012-11-27 21:57:10 +0100
commit209bfa4debc92cb31426f0cc7b2a84c733917f7b (patch)
treeea6faefcbf4ab660b2f1eb031dcc9eb723187ec7 /src/os-plugins/plugins/qemukvm/XX_qemukvm.sh
parentForgot this one ... (diff)
downloadcore-209bfa4debc92cb31426f0cc7b2a84c733917f7b.tar.gz
core-209bfa4debc92cb31426f0cc7b2a84c733917f7b.tar.xz
core-209bfa4debc92cb31426f0cc7b2a84c733917f7b.zip
Updating settings for VirtualBox ...
Diffstat (limited to 'src/os-plugins/plugins/qemukvm/XX_qemukvm.sh')
-rw-r--r--src/os-plugins/plugins/qemukvm/XX_qemukvm.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh b/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh
index 3f952241..da3c998e 100644
--- a/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh
+++ b/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh
@@ -1,5 +1,5 @@
# Copyright (c) 2009..2010 - RZ Uni Freiburg
-# Copyright (c) 2008..2010 - OpenSLX GmbH
+# Copyright (c) 2008..2012 - OpenSLX GmbH
#
# This program/file is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -107,6 +107,15 @@ ALL ALL=NOPASSWD: /sbin/sysctl -q -w net.ipv4.conf.*.forwarding=?
ALL ALL=NOPASSWD: /opt/openslx/rootfs/usr/bin/killall -9 udhcpd
ALL ALL=NOPASSWD: /sbin/iptables -t nat -? POSTROUTING -s 192.168.1*.0/24 -o br0 -j MASQUERADE
EOF
+
+ # setting the base samba configuration
+ if [ -f /mnt/opt/openslx/plugins/virtualization/smb.conf -a \
+ -f /mnt/usr/sbin/smbd ] ; then
+ testmkd /mnt/etc/qemu
+ sed -e "s#NWIF#tapnat0#taphost0#;s#PIDDIR#/tmp/virt#" \
+ /mnt/opt/openslx/plugins/virtualization/smb.conf \
+ >/mnt/etc/qemu/smb.conf
+ fi
fi
else
[ $DEBUGLEVEL -gt 0 ] && echo " * Configuration of 'qemukvm' plugin failed"