summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/ubuntu/functions-default
diff options
context:
space:
mode:
authorSebastian Schmelzer2008-10-20 23:27:22 +0200
committerSebastian Schmelzer2008-10-20 23:27:22 +0200
commitf85d199d614e9a05098ab015ddda0818c4274bbf (patch)
treeec7066391fe3c948adccb8a988346dc66e9c262b /initramfs/distro-specs/ubuntu/functions-default
parent * create /tmp/vmware world writeable to avoid owner conflicts (diff)
downloadcore-f85d199d614e9a05098ab015ddda0818c4274bbf.tar.gz
core-f85d199d614e9a05098ab015ddda0818c4274bbf.tar.xz
core-f85d199d614e9a05098ab015ddda0818c4274bbf.zip
* code cosmetics
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2366 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/distro-specs/ubuntu/functions-default')
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default5
1 files changed, 4 insertions, 1 deletions
diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default
index 073a0749..b601bbc2 100644
--- a/initramfs/distro-specs/ubuntu/functions-default
+++ b/initramfs/distro-specs/ubuntu/functions-default
@@ -205,7 +205,10 @@ if [ "x$start_dreshal" = "xyes" ]; then
/mnt/etc/dbus-1/system.d/nm-* \
/mnt/etc/dbus-1/event.d/*NetworkManager*
sed -i /mnt/etc/PolicyKit/PolicyKit.conf \
- -e "s/\(<\/config>\)/<match action=\"org.freedesktop.hal.storage.mount-removable\">\n<return result=\"yes\"\/>\n<\/match>\n\1/"
+ -e "s/\(<\/config>\)/ @@new@@\n\1/" \
+ -e "s/@@new@@/<match action=\"@@action@@\">\n@@return@@\n <\/match>/" \
+ -e "s/@@action@@/org.freedesktop.hal.storage.mount-removable/" \
+ -e "s/@@return@@/ <return result=\"yes\"\/>/"
sed -i /mnt/etc/dbus-1/system.d/hal.conf \
-e "s/^\([^d]*\)deny\(.*Volume.*\)/\1allow\2/"
rllinker "dbus" 17 20