summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin
diff options
context:
space:
mode:
authorMichael Janczyk2008-04-07 19:29:33 +0200
committerMichael Janczyk2008-04-07 19:29:33 +0200
commit663b34f8cd95b1a8b49818518a83fd56d72907df (patch)
treea999df8751bc3b4a2a0db723d23f029da20eaadf /os-plugins/plugins/bootsplash/OpenSLX/OSPlugin
parent* make use of loadDistroModule(), now that we have it (diff)
downloadcore-663b34f8cd95b1a8b49818518a83fd56d72907df.tar.gz
core-663b34f8cd95b1a8b49818518a83fd56d72907df.tar.xz
core-663b34f8cd95b1a8b49818518a83fd56d72907df.zip
config.xml which sets splashy theme is now generated via demuxer. The theme dir does only contain theme specific stuff now. Should be less confusing.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1725 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/bootsplash/OpenSLX/OSPlugin')
-rw-r--r--os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm23
1 files changed, 21 insertions, 2 deletions
diff --git a/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm b/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm
index fef84d29..1604e271 100644
--- a/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm
+++ b/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm
@@ -136,14 +136,33 @@ sub copyRequiredFilesIntoInitramfs
}
if (-d $splashyThemeDir) {
my $splashyPath = "$bootsplashDir/files/bin";
+ my $defSplashyTheme = "/etc/splashy/themes/$bootsplashTheme";
+ my $splashyConfig = unshiftHereDoc(<<" End-of-Here");
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Autogenerated by OpenSLX-plugin 'bootsplash' -->
+ <splashy>
+ <!-- themes directory: -->
+ <themes>/etc/splashy/themes</themes>
+ <!-- current theme (relative path) -->
+ <current_theme>$bootsplashTheme</current_theme>
+ <!-- full path to theme, fall back in case of problems -->
+ <default_theme>$defSplashyTheme</default_theme>
+ <pid>/etc/splashy/splashy.pid</pid>
+ <fifo>/dev/.initramfs/splashy.fifo</fifo>
+ </splashy>
+ End-of-Here
+ spitFile("$bootsplashConfigDir/config.xml", $splashyConfig);
$makeInitRamFSEngine->addCMD(
"cp -p $splashyPath/splashy* $targetPath/bin/"
);
$makeInitRamFSEngine->addCMD(
- "mkdir -p $targetPath/etc/splashy"
+ "mkdir -p $targetPath/etc/splashy/themes"
+ );
+ $makeInitRamFSEngine->addCMD(
+ "cp -a $bootsplashConfigDir/config.xml $targetPath/etc/splashy/"
);
$makeInitRamFSEngine->addCMD(
- "cp -a $splashyThemeDir/* $targetPath/etc/splashy/"
+ "cp -a $splashyThemeDir $targetPath/etc/splashy/themes/"
);
}
}