summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/suse
diff options
context:
space:
mode:
authorVolker Uhrig2008-02-21 18:45:35 +0100
committerVolker Uhrig2008-02-21 18:45:35 +0100
commit0b3bf8fa3a6a5df08658aaaa3e7585a0e8b24302 (patch)
treed6fd43034bace8d5796d46bdf853c01eb6da48e0 /initramfs/distro-specs/suse
parentAdded example of os-name in example.pm (diff)
downloadcore-0b3bf8fa3a6a5df08658aaaa3e7585a0e8b24302.tar.gz
core-0b3bf8fa3a6a5df08658aaaa3e7585a0e8b24302.tar.xz
core-0b3bf8fa3a6a5df08658aaaa3e7585a0e8b24302.zip
* Removed deprecated vmware configuration
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1567 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/suse')
-rw-r--r--initramfs/distro-specs/suse/functions-10.019
-rw-r--r--initramfs/distro-specs/suse/functions-10.123
-rw-r--r--initramfs/distro-specs/suse/functions-10.223
3 files changed, 1 insertions, 64 deletions
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, <openslx-users@openslx.org>\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, <openslx-users@openslx.org>\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, <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)
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, <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)
keytable () {
if [ -f /mnt/etc/${D_INITDIR}/kbd ] ; then