summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmware/XX_vmware.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-07-13 16:06:42 +0200
committerDirk von Suchodoletz2008-07-13 16:06:42 +0200
commita137a69c8b76dbfd2cdf6639d1bb133ebffaffa3 (patch)
tree7824033978e4ecf769e3670f1b7ef0417b35293b /os-plugins/plugins/vmware/XX_vmware.sh
parent* fixed path (diff)
downloadcore-a137a69c8b76dbfd2cdf6639d1bb133ebffaffa3.tar.gz
core-a137a69c8b76dbfd2cdf6639d1bb133ebffaffa3.tar.xz
core-a137a69c8b76dbfd2cdf6639d1bb133ebffaffa3.zip
Cleanup, comments for vmware Plugin, see #240 too ... (renaming of the
runlevel script to vmware-env to avoid name overlaps for killall) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1929 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/XX_vmware.sh')
-rw-r--r--os-plugins/plugins/vmware/XX_vmware.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/os-plugins/plugins/vmware/XX_vmware.sh b/os-plugins/plugins/vmware/XX_vmware.sh
index 59a16919..570bdb5a 100644
--- a/os-plugins/plugins/vmware/XX_vmware.sh
+++ b/os-plugins/plugins/vmware/XX_vmware.sh
@@ -29,10 +29,6 @@ if [ -e /initramfs/plugin-conf/vmware.conf ]; then
[ $DEBUGLEVEL -gt 0 ] && echo "executing the 'vmware' os-plugin ...";
# Load general configuration
. /initramfs/machine-setup
- # evtl. völlig unnötig?!?
- #. /etc/functions
- #. /etc/distro-functions
- #. /etc/sysconfig/config
# prepare all needed vmware configuration files
if [ -d /mnt/etc/vmware ] ; then
@@ -48,6 +44,8 @@ if [ -e /initramfs/plugin-conf/vmware.conf ]; then
# should contain (seems to be an average one)
echo -e "# configuration file for vmware background services written in \
stage3 setup" > /mnt/etc/vmware/slxvmconfig
+ # fixme: sollte unnötig sein, das hier zu tun. "vmware-env" kann hier voll
+ # determiniert werden, siehe Ticket 240
echo "vmware_kind=${vmware_kind}" >> /mnt/etc/vmware/slxvmconfig
if [ "$vmware_bridge" = 1 ] ; then
echo "vmnet0=true" >> /mnt/etc/vmware/slxvmconfig
@@ -139,10 +137,10 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \
fi
# copy the runlevelscript to the proper place and activate it
cp /mnt/opt/openslx/plugin-repo/vmware/${vmware_kind}/vmware.init \
- /mnt/etc/${D_INITDIR}/vmware \
+ /mnt/etc/${D_INITDIR}/vmware-env \
|| echo " * Error copying runlevel script. Shouldn't happen."
- chmod a+x /mnt/etc/${D_INITDIR}/vmware
- rllinker "vmware" 20 2
+ chmod a+x /mnt/etc/${D_INITDIR}/vmware-env
+ rllinker "vmware-env" 20 2
#############################################################################
# vmware stuff first part: two scenarios
@@ -189,7 +187,7 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \
# create needed directories and files
for i in /var/run/vmware /etc/vmware/loopimg \
- /etc/vmware/fd-loop /var/X11R6/bin /etc/X11/sessions; do
+ /etc/vmware/fd-loop /var/X11R6/bin; do
testmkd /mnt/$i
done