summaryrefslogtreecommitdiffstats
path: root/core/modules/kdm-theme-bwlp/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/kdm-theme-bwlp/module.build')
-rw-r--r--core/modules/kdm-theme-bwlp/module.build20
1 files changed, 16 insertions, 4 deletions
diff --git a/core/modules/kdm-theme-bwlp/module.build b/core/modules/kdm-theme-bwlp/module.build
index 135bddfc..48733d91 100644
--- a/core/modules/kdm-theme-bwlp/module.build
+++ b/core/modules/kdm-theme-bwlp/module.build
@@ -1,14 +1,26 @@
#!/bin/bash
-
-fetch_source () {
+fetch_source() {
:
}
-build () {
+build() {
:
}
post_copy() {
- :
+ # Try to fetch distro logo
+ if [ ! -s "$TARGET_BUILD_DIR/etc/distro.png" ]; then
+ local DIST=$(lsb_release -si)
+ if [ -n "$DIST" ]; then
+ [ -z "$CFG_DISTLOGO_URL" ] && CFG_DISTLOGO_URL='http://mltk-services.ruf.uni-freiburg.de/distro_logo.php?distro='
+ wget -t 3 -T 3 -O "$TARGET_BUILD_DIR/etc/distro.png" "${CFG_DISTLOGO_URL}${DIST}"
+ if [ ! -s "$TARGET_BUILD_DIR/etc/distro.png" ]; then
+ rm -f "$TARGET_BUILD_DIR/etc/distro.png"
+ pwarning "Could not download distro-logo"
+ fi
+ else
+ pwarning "Could not determine distribution"
+ fi
+ fi
}