summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/suse/functions-9.3
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/distro-specs/suse/functions-9.3')
-rw-r--r--initramfs/distro-specs/suse/functions-9.374
1 files changed, 74 insertions, 0 deletions
diff --git a/initramfs/distro-specs/suse/functions-9.3 b/initramfs/distro-specs/suse/functions-9.3
new file mode 100644
index 00000000..44c4e672
--- /dev/null
+++ b/initramfs/distro-specs/suse/functions-9.3
@@ -0,0 +1,74 @@
+# Description: configuration script for SuSE 9.3 to configure linux
+# diskless clients (included by init, hwautocfg, servconfig
+# within initial ramdisk after inclusion of the main
+# functions file). This file might overwrite settings from
+# the main base for the several SuSE distro versions
+#
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 23-06-2006
+#
+# Copyright: (c) 2006 - RZ Universitaet Freiburg
+#
+# Version: 0.3.0a
+
+# distro specific stuff to initialize
+postinit () {
+ # for some reason the udev daemon does not create the needed device files
+ udevstart
+}
+
+# udev/hotplug - auto device discovery service
+udev_hotplug () {
+local result=0
+[ -d /etc/hotplug -a -d /etc/hotplug.d ] || error "$df_errhotpl" nonfatal
+echo "Enabling hotplug/udev"
+udevstart || result=1
+udevd -d || result=1
+return $result
+}
+
+# acpi and powersave
+config_acpi () {
+rllinker powersaved "10" "12"
+}
+
+# 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)
+config_dreshal () {
+local start="05"
+local stop="18"
+if [ "x$start_dreshal" = "xyes" ]; then
+ if [ -e /mnt/etc/${D_INITDIR}/dbus ] ; then
+ strinfile "messagebus:" /mnt/etc/passwd || \
+ echo "messagebus:x:100:101:User for D-BUS:/var/run/dbus:/bin/false" \
+ >> /mnt/etc/passwd
+ strinfile "messagebus:" /mnt/etc/group || \
+ echo "messagebus:!:101:" >> /mnt/etc/group
+ testmkd /mnt/var/run/dbus
+ # set permissions with userid
+ echo -e "\tchown messagebus:messagebus /var/run/dbus 2>/dev/null" \
+ >>/mnt/etc/${D_INITDIR}/boot.ld
+ rllinker "dbus" "$start" "$stop"
+ fi
+ if [ -e /mnt/etc/${D_INITDIR}/resmgr ] ; then
+ testmkd /mnt/var/run/resmgr/classes
+ start="0"`expr $start + 1`
+ stop="0"`expr $start - 1`
+ rllinker "resmgr" "$start" "$stop"
+ fi
+ if [ -e /mnt/etc/${D_INITDIR}/hal ] ; then
+ strinfile "haldaemon:" /mnt/etc/passwd || \
+ echo "haldaemon:x:105:103:User for haldaemon:/var/run/hal:/bin/false" \
+ >> /mnt/etc/passwd
+ strinfile "haldaemon:" /mnt/etc/group || \
+ echo "haldaemon:!:103:" >> /mnt/etc/group
+ testmkd /mnt/var/run/hal
+ # set permissions with userid
+ echo -e "\tchown haldaemon:haldaemon /var/run/hal 2>/dev/null" \
+ >>/mnt/etc/${D_INITDIR}/boot.ld
+ start="0"`expr $start + 1`
+ stop="0"`expr $start - 1`
+ rllinker "hal" "$start" "$stop"
+ fi
+fi
+}