From 0b3bf8fa3a6a5df08658aaaa3e7585a0e8b24302 Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Thu, 21 Feb 2008 17:45:35 +0000 Subject: * Removed deprecated vmware configuration git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1567 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/distro-specs/suse/functions-10.0 | 19 ------------------- initramfs/distro-specs/suse/functions-10.1 | 23 ----------------------- initramfs/distro-specs/suse/functions-10.2 | 23 +---------------------- 3 files changed, 1 insertion(+), 64 deletions(-) (limited to 'initramfs/distro-specs/suse') diff --git a/initramfs/distro-specs/suse/functions-10.0 b/initramfs/distro-specs/suse/functions-10.0 index aee86941..5f7916d1 100644 --- a/initramfs/distro-specs/suse/functions-10.0 +++ b/initramfs/distro-specs/suse/functions-10.0 @@ -13,25 +13,6 @@ # in general SuSE base definitions ... General changes should be done there, # version specific changes for the version 10.0 go here. -# prepare virtual machine environment (vmware, vmplayer) -config_vmware () { -# during vmware sessions linux should not handle usb events/devices -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 - OpenSLX.ORG Project, \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# OpenSLX \ -Project, \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 -} # secure shell service config_sshd () { if [ "x$start_sshd" = "xyes" ] ; then 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, \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, \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) diff --git a/initramfs/distro-specs/suse/functions-10.2 b/initramfs/distro-specs/suse/functions-10.2 index eb2ffe82..e9e7258f 100644 --- a/initramfs/distro-specs/suse/functions-10.2 +++ b/initramfs/distro-specs/suse/functions-10.2 @@ -88,28 +88,7 @@ echo -e "\t# stuff needed for nfsv4\n\tmount -t rpc_pipefs rpc_pipefs \ rllinker "gssd" 15 7 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, \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, \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) keytable () { if [ -f /mnt/etc/${D_INITDIR}/kbd ] ; then -- cgit v1.2.3-55-g7522