Add additinal checks to make sure convert as well as the necessary files are present
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 47-update-wallpaper
index ca0a303..bd5f8c4 100755 (executable)
@@ -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 \