summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/etc/vmware-prep
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-09-18 13:58:18 +0200
committerDirk von Suchodoletz2006-09-18 13:58:18 +0200
commitebe256e4b71415fdc3e0cf37782222c02742ac63 (patch)
tree3530e9d43a8769925f73eb364f2822f7d45f0554 /initrd/initrd-stuff/etc/vmware-prep
parentUpdated scripts for new path scheme (''opt'' prefix, see (diff)
downloadcore-ebe256e4b71415fdc3e0cf37782222c02742ac63.tar.gz
core-ebe256e4b71415fdc3e0cf37782222c02742ac63.tar.xz
core-ebe256e4b71415fdc3e0cf37782222c02742ac63.zip
Hopefully completed #78 task, moved directory name (initramfs to
distinguish from ancient but not longer used Initial Ramdisk concept) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@380 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/etc/vmware-prep')
-rw-r--r--initrd/initrd-stuff/etc/vmware-prep49
1 files changed, 0 insertions, 49 deletions
diff --git a/initrd/initrd-stuff/etc/vmware-prep b/initrd/initrd-stuff/etc/vmware-prep
deleted file mode 100644
index 9ea2f82c..00000000
--- a/initrd/initrd-stuff/etc/vmware-prep
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-#
-# Kernel of a generic runlevel script file for use with OpenSLX diskless
-# linux machines - script prepares vmware environment. Start and stop
-# functionality is added within initialramfs
-#
-# Michael Janczyk <mj0@uni-freiburg.de>, 07-09-2006
-# Dirk von Suchodoletz <dirk@goe.net>, 03-09-2006
-#
-# (c) 2003, 2006 - RZ Universitaet Freiburg
-#
-# Version: 0.2.359
-#
-#######################################################################
-# set verbose mode for script debugging
-#set -xv
-
-### CONFIGURATION #####################################################
-# read configuration information
-#. /etc/machine-setup # not needed at the moment!
-
-### VARIABLES SECTION #################################################
-# Declaration of default variables
-vmdir=/var/lib/vmware
-
-### START SCRIPT ######################################################
-
-modprobe loop >/dev/null 2>&1
-
-# device creation - the module does not trigger udev properly
-for i in 0 1 2 3 4 5 6 7 8 9; do
- [ -c /dev/vmnet${i} ] || mknod /dev/vmnet${i} c 119 ${i};
-done
-chmod 0700 /dev/vmnet*
-
-# loop file for exchanging information between linux and vmware guest
-loopsrc=/etc/vmware/loopimg
-loopdst=/etc/vmware/fd-loop
-mkdir -p $loopsrc
-grep "unionfs" /proc/mounts >/dev/null && \
- mount -o size=1500k -t tmpfs vm-loopimg $loopsrc
-mkdir -p -m a+t $loopdst
-cp ${vmdir}/templ/fd1.img /$loopsrc/fd1.img
-chmod a+rw /$loopsrc/fd1.img
-mount -n -t msdos -o loop,umask=000 /$loopsrc/fd1.img $loopdst
-
-# mount usbfs needed for vmware to detect usb devices
-grep "/proc/bus/usb" /proc/mounts >/dev/null || \
- mount -t usbfs usbfs /proc/bus/usb