summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-02-03 19:35:51 +0100
committerDirk von Suchodoletz2009-02-03 19:35:51 +0100
commit2e8cbf0e43b507bf04fe7414aeaf492004f0aa0c (patch)
tree0d20143940e7b546868b6f941619c0703b42013d /initramfs
parentFix for gdmgreeter path in SuSE10.2 (desktop plugin). (diff)
downloadcore-2e8cbf0e43b507bf04fe7414aeaf492004f0aa0c.tar.gz
core-2e8cbf0e43b507bf04fe7414aeaf492004f0aa0c.tar.xz
core-2e8cbf0e43b507bf04fe7414aeaf492004f0aa0c.zip
Small fixes for the dreshal block in SuSE10.2 (increase
the probability that polkitd is started) ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2566 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/distro-specs/suse/functions-10.227
1 files changed, 12 insertions, 15 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.2 b/initramfs/distro-specs/suse/functions-10.2
index 657f71dd..16d0cdee 100644
--- a/initramfs/distro-specs/suse/functions-10.2
+++ b/initramfs/distro-specs/suse/functions-10.2
@@ -45,20 +45,9 @@ if [ "x$start_dreshal" = "xyes" ]; then
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
+ testmkd /mnt/var/run/dbus messagebus:messagebus
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))
@@ -74,12 +63,20 @@ if [ "x$start_dreshal" = "xyes" ]; then
# 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
+ if [ -f /mnt/etc/init.d/policykitd ] ; then
+ strinfile "polkituser:" /mnt/etc/passwd || \
+ echo "polkituser:x:104:106:PolicyKit:/var/run/PolicyKit:/bin/false" \
+ >> /mnt/etc/passwd
+ testmkd /mnt/var/run/polkit polkit:polkit
+ start=$(($start + 10))
+ stop=$(($stop - 1))
+ rllinker "policykitd" $start $stop
+ echo -n > /mnt/var/lib/misc/PolicyKit.reload
+ chmod a+x /mnt/var/lib/misc/PolicyKit.reload
+ fi
fi
}