blob: cfea19b0514ddcbd1bf2bffd063299e8ffc7be70 (
plain) (
blame)
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
|
#! /bin/ash
#
# stage3 part of 'desktop' plugin - the runlevel script
#
. /etc/functions
. /etc/distro-functions
. /etc/sysconfig/config
if [ -e /initramfs/plugin-conf/desktop.conf ]; then
. /initramfs/plugin-conf/desktop.conf
if [ $desktop_active -ne 0 ]; then
[ $DEBUGLEVEL -gt 0 ] && echo "executing the 'desktop' os-plugin ...";
testmkd /mnt/var/lib/openslx/themes
testmkd /mnt/var/lib/openslx/config
# problem which occurs if exporting was forgotten (quick fix code)
if [ -e /mnt/opt/openslx/plugin-repo/desktop/${desktop_manager}/desktop.sh ]
then . /mnt/opt/openslx/plugin-repo/desktop/${desktop_manager}/desktop.sh
else
error fatal "This shouldn't fail - you might have forgotten to export \
your system."
fi
# TODO: move the following stuff into the gdm-specific desktop.sh
# (and perhaps handle through a template?)
if [ "${desktop_manager}" = "XXXkdm" ]; then
cp -a /usr/share/themes/kdm /mnt/var/lib/openslx/themes
sed -i "s,Theme=.*,Theme=/var/lib/openslx/themes/kdm," /mnt/etc/kde3/kdm/kdmrc
sed -i "s,UseTheme=.*,UseTheme=true," /mnt/etc/kde3/kdm/kdmrc
fi
[ $DEBUGLEVEL -gt 0 ] && echo "done with 'desktop' os-plugin ...";
fi
fi
|