summaryrefslogtreecommitdiffstats
path: root/initrd/distro-specs/ubuntu/functions-5.10
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/distro-specs/ubuntu/functions-5.10')
-rw-r--r--initrd/distro-specs/ubuntu/functions-5.1040
1 files changed, 12 insertions, 28 deletions
diff --git a/initrd/distro-specs/ubuntu/functions-5.10 b/initrd/distro-specs/ubuntu/functions-5.10
index f98da405..15692859 100644
--- a/initrd/distro-specs/ubuntu/functions-5.10
+++ b/initrd/distro-specs/ubuntu/functions-5.10
@@ -1,15 +1,14 @@
-# Description: configuration script for Ubuntu V5.10 to configure
-# linux diskless clients (executed within initial
-# ramdisk after genconfig) - overwrites settings from the
-# ubuntu default file (functions-default)
+# configuration script for Ubuntu V5.10 to configure OpenSLX linux diskless
+# clients (merged in stage2 with ubuntu/functions-default - and loaded within
+# initial ramfs - stage3) It may overwrite settings from the default config
+# file (/etc/functions)
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 08-07-2006
-# Nico Dietrich
-# Felix Endres
+# Dirk von Suchodoletz <dvs@OpenSLX.com>, 31-08-2006
+# Nico Dietrich
+# Felix Endres
#
-# Copyright: (c) 2006 - RZ Universitaet Freiburg
-#
-# Version: 0.3.0b
+# (c) 2006 - RZ Universitaet Freiburg
+# (c) 2006 - OpenSLX.ORG Project
# distro specific stuff to initialize
preinit () {
@@ -32,7 +31,6 @@ config_distro () {
sed -e "s/.*initdefault/id:${D_INITDEFAULT}:initdefault/" -i /mnt/etc/inittab
}
-# AUS SuSE-9.3
# udev/hotplug - auto device discovery service
udev_hotplug () {
local result=0
@@ -43,21 +41,6 @@ udev_hotplug () {
return $result
}
-## udev service
-#udev_hotplug () {
-#local result=0
-#echo "Starting udev"
-#udevstart || result=1
-#if [ -x /bin/udevd ] ; then
-# export UDEVD_EXPECTED_SEQNUM=$(cat /sys/kernel/hotplug_seqnum)
-# export UDEVD_EVENT_TIMEOUT=1
-# echo "" > /proc/sys/kernel/hotplug
-# udevd --daemon || result=1
-#else error "df_errudev" nonfatal
-#fi
-#return $result
-#}
-
# linking runlevel scripts
rllinker () {
local script="$1"
@@ -178,6 +161,7 @@ config_acpi () {
}
# configure hal, dbus, resmgr and services like that
+# fixme: complete or remove (dummy function is present in /etc/functions)
config_dreshal () {
if [ "x$start_dreshal" = "xyes" ]; then
:
@@ -218,7 +202,7 @@ testmkd /mnt/var/X11R6/bin
echo '#!/bin/sh'>> /mnt/etc/udev/rules.d/01-udev-vm.rules
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, <dirk@goe.net>\n\
+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 \
@@ -226,7 +210,7 @@ STATE=1\nps aux|grep -i vmware|grep -v \"grep\" &>/dev/null && { STATE=0; \
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, <dirk@goe.net>\nSUBSYSTEM==\"usb\", ACTION==\"add\", \
+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