diff options
author | Dirk von Suchodoletz | 2007-02-09 00:06:03 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2007-02-09 00:06:03 +0100 |
commit | b5179d08c3676ba486b78f7971c27ba3e2352d2a (patch) | |
tree | c6fd1419c63292dbdccb9c55a4088dee0d5d95de /initramfs/distro-specs/suse/functions-10.2 | |
parent | bug removed (diff) | |
download | core-b5179d08c3676ba486b78f7971c27ba3e2352d2a.tar.gz core-b5179d08c3676ba486b78f7971c27ba3e2352d2a.tar.xz core-b5179d08c3676ba486b78f7971c27ba3e2352d2a.zip |
Inserted start script for policykitd (needed for device access in KDE
and GNOME) in functions-10.2 (opensuse) ...
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@697 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/suse/functions-10.2')
-rw-r--r-- | initramfs/distro-specs/suse/functions-10.2 | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.2 b/initramfs/distro-specs/suse/functions-10.2 index 62fb1f3d..0ec98e85 100644 --- a/initramfs/distro-specs/suse/functions-10.2 +++ b/initramfs/distro-specs/suse/functions-10.2 @@ -62,6 +62,56 @@ rllinker acpid "10" "12" rllinker powersaved "11" "11" } +# 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. For KDE +# and GNOME a new concept was introduced: +config_dreshal () { +local start="05" +local stop="18" +if [ "x$start_dreshal" = "xyes" ]; then + if [ -f /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 [ -f /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 [ -f /mnt/etc/${D_INITDIR}/policykitd ] ; then + testmkd /mnt/var/run/polkit + start="0"`expr $start + 1` + stop="0"`expr $start - 1` + rllinker "policykitd" "$start" "$stop" + fi + if [ -f /mnt/etc/${D_INITDIR}/haldaemon ] ; 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 "haldaemon" "$start" "$stop" + fi +fi +} + # afs client # configure afs client config_afs () { |