X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F47-update-wallpaper;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F47-update-wallpaper;h=bd5f8c4644f31d5bd5b6d7ce2610fc843110b2d9;hp=ca0a303852e0199dcff18175093ac6c2e55f7226;hb=59228b5a14ecf72546704b0094c0013014ebf477;hpb=895b6b6202b913147e0b583523c6f174f93fdad4 diff --git a/etc/grml/fai/config/scripts/GRMLBASE/47-update-wallpaper b/etc/grml/fai/config/scripts/GRMLBASE/47-update-wallpaper index ca0a303..bd5f8c4 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/47-update-wallpaper +++ b/etc/grml/fai/config/scripts/GRMLBASE/47-update-wallpaper @@ -19,6 +19,16 @@ if [ ! -x "$(which convert)" ]; then exit 0 fi +if [ ! -f "$GRML_BG" ]; then + echo "Could not find Grml background image, skipping wallpaper" + exit 0 +fi + +if [ ! -f "$FONTFILE" ]; then + echo "Could not find font $FONTFILE, skipping wallpaper" + exit 0 +fi + echo "Creating standard wallpaper" convert "$GRML_BG" -gravity center \