diff options
| author | Daniel Baumann <daniel@debian.org> | 2008-03-21 07:53:26 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:44:53 +0100 |
| commit | 64be9d84a425d267338004c0832ca5c9a79ed312 (patch) | |
| tree | 587fd8ebbf1fa42bff6409d74593ad997814d767 /scripts | |
| parent | b2b8542c6a7f0dc525adfb0f3b9a5a961218ae4f (diff) | |
| download | live-boot-64be9d84a425d267338004c0832ca5c9a79ed312.tar.gz live-boot-64be9d84a425d267338004c0832ca5c9a79ed312.zip | |
Adjusting 44pk_allow to live-initramfs.
Diffstat (limited to 'scripts')
| -rwxr-xr-x[-rw-r--r--] | scripts/live-bottom/44pk_allow | 44 |
1 files changed, 25 insertions, 19 deletions
diff --git a/scripts/live-bottom/44pk_allow b/scripts/live-bottom/44pk_allow index aefde98..fe5a507 100644..100755 --- 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 |
