diff options
author | Bastian Wissler | 2008-09-26 13:55:56 +0200 |
---|---|---|
committer | Bastian Wissler | 2008-09-26 13:55:56 +0200 |
commit | 0e2aaa40c60de80a55d19b9c975f3f5996a3910c (patch) | |
tree | 67a40aad2e50fe2e82443334589ee17f7030026d | |
parent | vmchooser bugfix: (diff) | |
download | core-0e2aaa40c60de80a55d19b9c975f3f5996a3910c.tar.gz core-0e2aaa40c60de80a55d19b9c975f3f5996a3910c.tar.xz core-0e2aaa40c60de80a55d19b9c975f3f5996a3910c.zip |
suse-10.2: policikitd starting before haldaemon
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2248 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r-- | initramfs/distro-specs/suse/functions-10.2 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.2 b/initramfs/distro-specs/suse/functions-10.2 index 37a79799..657f71dd 100644 --- a/initramfs/distro-specs/suse/functions-10.2 +++ b/initramfs/distro-specs/suse/functions-10.2 @@ -25,3 +25,61 @@ D_RODIRSINRW="/etc/opt/gnome/gconf /etc/X11/xkb /var/adm /var/lib/texmf \ /var/lib/rpm /var/cache/fontconfig" + +# 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=5 +local stop=18 +if [ "x$start_dreshal" = "xyes" ]; then + for dir in /var/run/dbus /var/run/resmgr/classes /var/run/hal \ + /var/cache/hald /var/lib/PolicyKit; do + testmkd /mnt/$dir + done + 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 + strinfile "messagebus:" /mnt/etc/group || \ + echo "messagebus:!:101:" >> /mnt/etc/group + # set permissions with userid + echo -e "\tchown messagebus:messagebus /var/run/dbus 2>/dev/null" \ + >>/mnt/etc/init.d/boot.slx + rllinker "dbus" $start $stop + fi + if [ -f /mnt/etc/init.d/consolekit ] ; then + strinfile "polkituser:" /mnt/etc/passwd || \ + echo "polkituser:x:104:106:PolicyKit:/var/run/PolicyKit:/bin/false" \ + >> /mnt/etc/passwd + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "consolekit" $start $stop + echo -n > /mnt/var/lib/misc/PolicyKit.reload + chmod a+x /mnt/var/lib/misc/PolicyKit.reload + fi + if [ -f /mnt/etc/init.d/resmgr ] ; then + start=$(($start + 1)) + stop=$(($stop - 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 + strinfile "haldaemon:" /mnt/etc/group || \ + echo "haldaemon:!:103:" >> /mnt/etc/group + echo -n "" > /mnt/var/lib/PolicyKit/reload + # set permissions with userid + echo -e "\tchown haldaemon:haldaemon /var/run/hal /var/cache/hald \ + 2>/dev/null" >>/mnt/etc/init.d/boot.slx + + # this seems important for suse-10.2 + rllinker "policykitd" $start $stop + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "haldaemon" $start $stop + fi +fi +} |