Remove trailing "..." from calls to log_begin_msg - they get added anyway.
[live-boot-grml.git] / scripts / live-bottom / 44pk_allow
old mode 100644 (file)
new mode 100755 (executable)
index aefde98..84c4b6b
@@ -1,28 +1,33 @@
 #!/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
-
 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
 
 <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
@@ -31,14 +36,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