summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-03-12 15:27:23 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:07 +0100
commit1376dce73e32c0cd71e7c5c24d003c24c8242f65 (patch)
tree4f73094becc804f5c706ceef9bc9f2164f29885a
parent2f3468b96461f615b617905bab585c6dbd32dc1a (diff)
downloadlive-boot-1376dce73e32c0cd71e7c5c24d003c24c8242f65.tar.gz
live-boot-1376dce73e32c0cd71e7c5c24d003c24c8242f65.zip
Only disabling kpersonalizer when using kde3, kde4 doesn't need that hack.
-rwxr-xr-xscripts/live-bottom/34disable_kpersonalizer15
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/live-bottom/34disable_kpersonalizer b/scripts/live-bottom/34disable_kpersonalizer
index d61c879..1dc4545 100755
--- a/scripts/live-bottom/34disable_kpersonalizer
+++ b/scripts/live-bottom/34disable_kpersonalizer
@@ -31,20 +31,23 @@ log_begin_msg "Disabling kpersonalizer"
# live-initramfs script
-if chroot /root /usr/bin/which kpersonalizer >/dev/null
+if [ -e /etc/kde3 ]
then
- # Disable first-login wizard for KDE
- if [ ! -f /root/etc/kde3/kpersonalizerrc ]
+ if chroot /root /usr/bin/which kpersonalizer >/dev/null
then
+ # Disable first-login wizard for KDE
+ if [ ! -f /root/etc/kde3/kpersonalizerrc ]
+ then
cat > /root/etc/kde3/kpersonalizerrc << EOF
[General]
FirstLogin=false
EOF
- else
- echo "I'm not smart enough to disable kpersonalizer startup" >&2
- echo "Because kpersonalizerrc already exists" >&2
+ else
+ echo "I'm not smart enough to disable kpersonalizer startup" >&2
+ echo "Because kpersonalizerrc already exists" >&2
+ fi
fi
fi