summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-02-19 16:01:45 +0100
committerDirk von Suchodoletz2009-02-19 16:01:45 +0100
commit1cf5955b48f1f00f2f5bae071894bab7a3dee1c3 (patch)
treea7492d271156a804869cc56268d8935586075ee2 /initramfs
parent* New vmchooser binary (with session saving feature) (diff)
downloadcore-1cf5955b48f1f00f2f5bae071894bab7a3dee1c3.tar.gz
core-1cf5955b48f1f00f2f5bae071894bab7a3dee1c3.tar.xz
core-1cf5955b48f1f00f2f5bae071894bab7a3dee1c3.zip
Changes again in SuSE dbus/haldaemon concepts ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2621 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/distro-specs/suse/functions-11.138
1 files changed, 38 insertions, 0 deletions
diff --git a/initramfs/distro-specs/suse/functions-11.1 b/initramfs/distro-specs/suse/functions-11.1
index d387b551..843f393a 100644
--- a/initramfs/distro-specs/suse/functions-11.1
+++ b/initramfs/distro-specs/suse/functions-11.1
@@ -29,3 +29,41 @@ config_portmap () {
rllinker "rpcbind" 4 5
}
+# configure dbus (inter application communication for kde and gnome), hal
+# (hardware abstraction layer - used e.g. by powersaved)
+config_dreshal () {
+local start=1
+local stop=10
+if [ "x$start_dreshal" = "xyes" ]; then
+ testmkd /mnt/var/run/PolicyKit polkituser:polkituser
+ testmkd /mnt/var/lib/PolicyKit polkituser:polkituser
+ testmkd /mnt/var/run/dbus/at_console/pool
+ if [ -f /mnt/etc/init.d/dbus ] ; then
+ strinfile "messagebus:" /mnt/etc/passwd || \
+ echo "messagebus:x:102:103:User for D-BUS:/var/run/dbus:/bin/false" \
+ >> /mnt/etc/passwd
+ strinfile "messagebus:" /mnt/etc/group || \
+ echo "messagebus:!:103:" >> /mnt/etc/group
+ # create directories and set permissions with user and group id
+ testmkd /mnt/var/run/dbus messagebus:messagebus
+ testmkd /mnt/var/lib/dbus
+ rllinker "dbus" $start $stop
+ fi
+ if [ -f /mnt/etc/init.d/haldaemon ] ; then
+ strinfile "haldaemon:" /mnt/etc/passwd || \
+ echo "haldaemon:x:106:107:User for haldaemon:/var/run/hal:/bin/false" \
+ >> /mnt/etc/passwd
+ strinfile "haldaemon:" /mnt/etc/group || \
+ echo "haldaemon:!:107:" >> /mnt/etc/group
+ echo -n "" > /mnt/var/lib/PolicyKit.reload
+ # create directories and set permissions with user and group id
+ for dir in /var/run/hald /var/run/hald/hald-local \
+ /var/run/hald/hald-runner /var/cache/hald; do
+ testmkd /mnt/${dir} haldaemon:haldaemon
+ done
+ start=$(($start + 1))
+ stop=$(($stop - 1))
+ rllinker "haldaemon" $start $stop
+ fi
+fi
+}