3 # geninitrd mod: condecor
4 FB_CON_DECOR=${FB_CON_DECOR:-no}
6 # requires splashutils package to operate
8 # setup geninitrd module
10 setup_mod_condecor() {
11 condecor_geninitramfs=$(find_tool /usr/sbin/splash_geninitramfs /usr/bin/splash_geninitramfs)
12 if [ ! -x "$condecor_geninitramfs" ]; then
16 if is_yes "$FB_CON_DECOR" && [ "$INITRDFS" != "initramfs" ]; then
17 warn "Using fbcondecor requires INITRDFS=initramfs; skipping fbcondecor generation"
22 # generate initrd fragment
24 initrd_gen_fbcondecor() {
25 if ! is_yes "$FB_CON_DECOR"; then
28 debug "Generating fbcondecor"
30 if [ -r /etc/sysconfig/splash ]; then
31 . /etc/sysconfig/splash
34 if [ -z "$SPLASH_THEME" ]; then
35 warn "Please configure your /etc/sysconfig/splash first."
36 warn "Generating of splashes skipped."
40 if [ -z "$FB_SPLASH_RESOLUTIONS" ]; then
41 warn "No FB_SPLASH_RESOLUTIONS specified in /etc/sysconfig/splash."
42 warn "Not adding fbcondecor to initramfs."
47 for res in $FB_SPLASH_RESOLUTIONS; do
48 if [ -f "/etc/splash/$SPLASH_THEME/$res.cfg" ]; then
49 $condecor_geninitramfs -c $DESTDIR -r $res $SPLASH_THEME && \
50 debug "Added $res $SPLASH_THEME theme to initramfs."
52 warn "/etc/splash/$SPLASH_THEME/$res.cfg doesn't exist, skipped"