summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/suse/functions-10.1
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/distro-specs/suse/functions-10.1')
-rw-r--r--initramfs/distro-specs/suse/functions-10.123
1 files changed, 0 insertions, 23 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.1 b/initramfs/distro-specs/suse/functions-10.1
index 5e1ee818..31ca9328 100644
--- a/initramfs/distro-specs/suse/functions-10.1
+++ b/initramfs/distro-specs/suse/functions-10.1
@@ -36,29 +36,6 @@ if [ "x$start_afs" = "xyes" ] ; then
fi
}
-# prepare virtual machine environment (vmware, vmplayer)
-config_vmware () {
-# during vmware sessions linux should not handle usb events/devices
-# vmplayer and recent versions of vmware do not need this hack
-if [ ! -x /mnt/usr/bin/vmplayer ] ; then
- echo '#!/bin/sh'> /mnt/var/X11R6/bin/vm-udev
- echo -e "# Script for blocking linux from handling usb \
-devices\n# during vmware sessions. If you like to remove certain modules \
-add them\n# to the list below - Dirk von Suchodoletz, <dvs@OpenSLX.com>\n\
-STATE=1\nps aux|grep -i vmware|grep -v \"grep\" &>/dev/null && { STATE=0; \
-/sbin/rmmod usb-storage &>/tmp/null; }\n\
-[ x\$ACTION = xremove ] && { [ \$STATE = 0 ] && /sbin/rmmod usb-storage \
-&>/dev/null; }\nexit \$STATE" >> /mnt/var/X11R6/bin/vm-udev
- chmod u+x /mnt/var/X11R6/bin/vm-udev
- echo -e "# special entry to block linux from reacting to usb events during \
-running\n# vmware sessions, generated by $0 during initramfs\n# Dirk von \
-Suchodoletz, <dvs@OpenSLX.com>\nSUBSYSTEM==\"usb\", ACTION==\"add\", \
-PROGRAM=\"/var/X11R6/bin/vm-udev\", OPTIONS=\"ignore_device\"\n\
-SUBSYSTEM==\"usb\", ACTION==\"remove\", PROGRAM=\"/var/X11R6/bin/vm-udev\"" \
- >> /mnt/etc/udev/rules.d/01-udev-vm.rules
-fi
-}
-
# set up keytable (function run in hwautocfg)
# kbd runlevel link is in the list of initial runlevel scripts (see
# config-10.1 file)