[SCM] debian-live/live-initramfs branch, master, updated. 1.119.1-1-8-g9b5686b
Daniel Baumann
daniel at debian.org
Fri Mar 21 06:58:50 UTC 2008
The following commit has been merged in the master branch:
commit 3dac555288c4c740a81fca1814c5bbae0a423f15
Author: Daniel Baumann <daniel at debian.org>
Date: Fri Mar 21 07:53:26 2008 +0100
Adjusting 44pk_allow to live-initramfs.
diff --git a/scripts/live-bottom/44pk_allow b/scripts/live-bottom/44pk_allow
old mode 100644
new mode 100755
index aefde98..fe5a507
--- a/scripts/live-bottom/44pk_allow
+++ b/scripts/live-bottom/44pk_allow
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Grant administrative PolicyKit pivilieges to default user..."
+#set -e
+
+# initramfs-tools header
-. /scripts/casper-functions
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Grant administrative PolicyKit pivilieges to default user..."
+
+# live-initramfs script
# configure PolicyKit in live session
cat << EOF > /root/etc/PolicyKit/PolicyKit.conf
@@ -31,14 +37,14 @@ cat << EOF > /root/etc/PolicyKit/PolicyKit.conf
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
- <match user="root">
- <return result="yes"/>
- </match>
- <!-- don't ask password for user in live session -->
- <match user="$USERNAME">
- <return result="yes"/>
- </match>
- <define_admin_auth group="admin"/>
+ <match user="root">
+ <return result="yes"/>
+ </match>
+ <!-- don't ask password for user in live session -->
+ <match user="$USERNAME">
+ <return result="yes"/>
+ </match>
+ <define_admin_auth group="admin"/>
</config>
EOF
--
debian-live/live-initramfs
More information about the debian-live-changes
mailing list