summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/Theme/XX_Theme.sh
blob: b37bd33beac06095a4555c2e52993222d8af751e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
#
# stage3 part of 'Theme' plugin - the runlevel script
#
. /etc/sysconfig/config
if [ -e /initramfs/plugin-conf/Theme.conf ]; then
	. /initramfs/plugin-conf/Theme.conf
	if [ $Theme_active -ne 0 ]; then
		[ $DEBUGLEVEL -gt 0 ] && echo "executing the 'Theme' os-plugin ...";
	
		testmkd /mnt/var/lib/openslx/themes/displaymanager
		testmkd /mnt/var/lib/openslx/bin
                if [ -d /usr/share/themes/displaymanager ]; then
                        cp -a /usr/share/themes/displaymanager \
                          /mnt/var/lib/openslx/themes
                        sed -i "s,UseTheme=false,UseTheme=true," /mnt/${kdmrcdir}/kdmrc
                fi

		[ $DEBUGLEVEL -gt 0 ] && echo "done with 'Theme' os-plugin ...";
	fi
fi