summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-03-21 07:51:20 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:44:53 +0100
commitb2b8542c6a7f0dc525adfb0f3b9a5a961218ae4f (patch)
tree4f8a7149d3eaea0ec3dd7a7572ddf750c71f1e8b /scripts
parent5859f4bba1e262e1558db572f294abe830dccc24 (diff)
downloadlive-boot-b2b8542c6a7f0dc525adfb0f3b9a5a961218ae4f.tar.gz
live-boot-b2b8542c6a7f0dc525adfb0f3b9a5a961218ae4f.zip
Merging casper 1.123.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/live-bottom/44pk_allow45
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/live-bottom/44pk_allow b/scripts/live-bottom/44pk_allow
new file mode 100644
index 0000000..aefde98
--- /dev/null
+++ b/scripts/live-bottom/44pk_allow
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+PREREQ=""
+DESCRIPTION="Grant administrative PolicyKit pivilieges to default user..."
+
+. /scripts/casper-functions
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+log_begin_msg "$DESCRIPTION"
+
+# 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"
+"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
+
+<!-- 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"/>
+</config>
+EOF
+
+log_end_msg