summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/34disable_kpersonalizer
blob: d61c8798debd7b882cb83d0fe13bf7e438f99e23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh

#set -e

# initramfs-tools header

PREREQ=""

prereqs()
{
	echo "${PREREQ}"
}

case "${1}" in
	prereqs)
		prereqs
		exit 0
		;;
esac

# live-initramfs header

if [ -n "${NOKPERSONALIZER}" ]
then
	exit 0
fi

. /scripts/live-functions

log_begin_msg "Disabling kpersonalizer"

# live-initramfs script

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
	fi
fi

log_end_msg