2 # Filename: ${GRML_FAI_CONFIG}/config/scripts/RELEASE/99-update-wallpaper
3 # Purpose: Update the grml wallpaper
4 # Authors: grml-team (grml.org)
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 ################################################################################
11 FONTFILE=${FONTFILE:-/usr/share/grml-live/fonts/graphicoreBitmapFont0-Light.otf}
12 TITLE_FONTSIZE=${TITLE_FONTSIZE:-200}
13 GRML_BG=${GRML_BG:-$target/usr/share/grml/desktop-bg.png}
14 GRML_WALLPAPER=${GRML_WALLPAPER:-$target/usr/share/grml/desktop.jpg}
16 echo "Creating release wallpaper"
18 if [ ! -x "$(which convert)" ]; then
19 echo "convert not installed, skipping release wallpaper."
23 if [ ! -f "$GRML_BG" ]; then
24 echo "Could not find Grml background image, skipping release wallpaper"
28 if [ ! -f "$FONTFILE" ]; then
29 echo "Could not find font $FONTFILE, skipping release wallpaper"
34 convert "$GRML_BG" -gravity center \
35 -fill white -font "$FONTFILE" \
36 -pointsize $TITLE_FONTSIZE \
37 -draw "text 0,0 \"$VERSION\"" "$GRML_WALLPAPER"