Skip to content

Commit

Permalink
Merging casper 1.123.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Mar 21, 2008
1 parent d32000d commit 44bd0a5
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/ChangeLog.casper
@@ -1,3 +1,12 @@
casper (1.123) hardy; urgency=low

* Add scripts/casper-bottom/44pk_allow_ubuntu: Allow PolicyKit privileges
without password to the default live session user. This avoids the need to
press Enter at the password prompt, which is quite confusing. Thanks to
MarioDebian! (LP: #201852)

-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 14 Mar 2008 17:26:37 +0100

casper (1.122) hardy; urgency=low

* Fix paths in About Kubuntu links
Expand Down
45 changes: 45 additions & 0 deletions 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

0 comments on commit 44bd0a5

Please sign in to comment.