projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forcing run of dexconf when booting with xdriver=dexconf.
[live-boot-grml.git]
/
scripts
/
live-bottom
/
44pk_allow
diff --git
a/scripts/live-bottom/44pk_allow
b/scripts/live-bottom/44pk_allow
index
7fd026e
..
fec6401
100755
(executable)
--- a/
scripts/live-bottom/44pk_allow
+++ b/
scripts/live-bottom/44pk_allow
@@
-40,10
+40,19
@@
cat << EOF > /root/etc/PolicyKit/PolicyKit.conf
<match user="root">
<return result="yes"/>
</match>
<match user="root">
<return result="yes"/>
</match>
+EOF
+
+if [ -n "${USERNAME}" ]
+then
+ cat << EOF >> /root/etc/PolicyKit/PolicyKit.conf
<!-- don't ask password for user in live session -->
<match user="$USERNAME">
<return result="yes"/>
</match>
<!-- don't ask password for user in live session -->
<match user="$USERNAME">
<return result="yes"/>
</match>
+EOF
+fi
+
+cat << EOF >> /root/etc/PolicyKit/PolicyKit.conf
<define_admin_auth group="admin"/>
</config>
EOF
<define_admin_auth group="admin"/>
</config>
EOF