summaryrefslogtreecommitdiffstats
path: root/initrd/distro-specs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-02-06 22:24:10 +0100
committerDirk von Suchodoletz2006-02-06 22:24:10 +0100
commit44c51a1730d9304f5f5754e3b63419040aa78729 (patch)
treeb713c0829292b9572022e284a6aeba9597f0e4fd /initrd/distro-specs
parentFixed small bug in mkdxsinitrd/repco (link copying) and moved the (diff)
downloadcore-44c51a1730d9304f5f5754e3b63419040aa78729.tar.gz
core-44c51a1730d9304f5f5754e3b63419040aa78729.tar.xz
core-44c51a1730d9304f5f5754e3b63419040aa78729.zip
Some tests with SuSE 10.1 revealed bugs in mkdxsinitrd. Added
configuration and functions ... git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@63 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/distro-specs')
-rw-r--r--initrd/distro-specs/suse/config-10.10
-rw-r--r--initrd/distro-specs/suse/functions-10.171
2 files changed, 71 insertions, 0 deletions
diff --git a/initrd/distro-specs/suse/config-10.1 b/initrd/distro-specs/suse/config-10.1
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/initrd/distro-specs/suse/config-10.1
diff --git a/initrd/distro-specs/suse/functions-10.1 b/initrd/distro-specs/suse/functions-10.1
new file mode 100644
index 00000000..19b41e79
--- /dev/null
+++ b/initrd/distro-specs/suse/functions-10.1
@@ -0,0 +1,71 @@
+# Description: configuration functions for SuSE 10.0 which differ from
+# functions defined for SuSE 9.3 which is base ... General
+# changes should be done there, version specific changes for
+# the 10.0 here.
+#
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 06-02-2006
+# Blabla
+# Blub
+#
+# Copyright: (c) 2006 - RZ Universitaet Freiburg
+#
+# Version: 0.2.1c
+
+# udev service
+udev_hotplug () {
+local result=0
+echo "Starting udev"
+if [ -x /bin/udevd ] ; then
+ echo "" > /proc/sys/kernel/hotplug
+ udevd --daemon || result=1
+ trigger_device_events
+ usleep 50
+else error " udev daemon is not available. Some devices might not \
+apprear." nonfatal
+fi
+return $result
+}
+
+# acpi and powersave have changed
+config_acpi () {
+local start_acpi=10
+local stop_acpi=12
+local start_powersave=11
+local stop_powersave=11
+rllinker acpid "$start_acpi" "$stop_acpi"
+rllinker powersaved "$start_powersave" "$stop_powersave"
+}
+
+# configure dbus (inter application communication for kde and gnome), hal
+# (hardware abstraction layer - used e.g. by powersaved) and resmgr
+# (resource manager - the user gets permissions to devices when loggin on)
+# runlevel script for haldaemon is now haldaemon instead of hal
+config_dreshal () {
+local start="05"
+local stop="18"
+if [ "x$start_dreshal" = "xyes" ]; then
+ if [ -f /mnt/etc/init.d/dbus ] ; then
+ strinfile "messagebus:" /mnt/etc/passwd || \
+ echo "messagebus:x:100:101:User for D-BUS:/var/run/dbus:/bin/false" \
+ >> /mnt/etc/passwd
+ testmkd /mnt/var/run/dbus
+ # chown 100:101 /mnt/var/run/dbus
+ rllinker "dbus" "$start" "$stop"
+ fi
+ if [ -f /mnt/etc/init.d/resmgr ] ; then
+ testmkd /mnt/var/run/resmgr/classes
+ start="0"`expr $start + 1`
+ stop="0"`expr $start - 1`
+ rllinker "resmgr" "$start" "$stop"
+ fi
+ if [ -f /mnt/etc/init.d/haldaemon ] ; then
+ strinfile "haldaemon:" /mnt/etc/passwd || \
+ echo "haldaemon:x:105:103:User for haldaemon:/var/run/hal:/bin/false" \
+ >> /mnt/etc/passwd
+ start="0"`expr $start + 1`
+ stop="0"`expr $start - 1`
+ rllinker "haldaemon" "$start" "$stop"
+ fi
+fi
+}
+