2 CONDECOR_RCSID='$Revision$ $Date:: $'
4 # geninitrd mod: condecor
5 FB_CON_DECOR=${FB_CON_DECOR:-no}
7 # requires splashutils package to operate
9 # setup geninitrd module
11 setup_mod_condecor() {
12 condecor_geninitramfs=$(find_tool /usr/sbin/splash_geninitramfs /usr/bin/splash_geninitramfs)
13 if [ ! -x "$condecor_geninitramfs" ]; then
17 if is_yes "$FB_CON_DECOR" && [ "$INITRDFS" != "initramfs" ]; then
18 warn "Using fbcondecor requires INITRDFS=initramfs; skipping fbcondecor generation"
23 # generate initrd fragment
25 initrd_gen_fbcondecor() {
26 if ! is_yes "$FB_CON_DECOR"; then
29 debug "Generating fbcondecor"
31 if [ -r /etc/sysconfig/splash ]; then
32 . /etc/sysconfig/splash
35 if [ -z "$SPLASH_THEME" ]; then
36 warn "Please configure your /etc/sysconfig/splash first."
37 warn "Generating of splashes skipped."
41 if [ -z "$FB_SPLASH_RESOLUTIONS" ]; then
42 warn "No FB_SPLASH_RESOLUTIONS specified in /etc/sysconfig/splash."
43 warn "Not adding fbcondecor to initramfs."
48 for res in $FB_SPLASH_RESOLUTIONS; do
49 if [ -f "/etc/splash/$SPLASH_THEME/$res.cfg" ]; then
50 $condecor_geninitramfs -c $DESTDIR -r $res $SPLASH_THEME && \
51 debug "Added $res $SPLASH_THEME theme to initramfs."
53 warn "/etc/splash/$SPLASH_THEME/$res.cfg doesn't exist, skipped"