summaryrefslogtreecommitdiffstats
path: root/remote/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-27 17:54:32 +0200
committerSimon Rettberg2013-06-27 17:54:32 +0200
commit436dbce388e4f24d7c64079881b1bf021dfc75b5 (patch)
tree595bba68a7687630c527dfca3c07b7b6aff05df4 /remote/rootfs
parentwhoopsie... fix scaling of logo (diff)
downloadtm-scripts-436dbce388e4f24d7c64079881b1bf021dfc75b5.tar.gz
tm-scripts-436dbce388e4f24d7c64079881b1bf021dfc75b5.tar.xz
tm-scripts-436dbce388e4f24d7c64079881b1bf021dfc75b5.zip
[kdm] Update theme
Diffstat (limited to 'remote/rootfs')
-rw-r--r--remote/rootfs/rootfs-stage32/rootfs-stage32.build17
1 files changed, 17 insertions, 0 deletions
diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.build b/remote/rootfs/rootfs-stage32/rootfs-stage32.build
index 4e16996b..3cfbbe5f 100644
--- a/remote/rootfs/rootfs-stage32/rootfs-stage32.build
+++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.build
@@ -115,6 +115,23 @@ post_copy() {
else
pinfo "Not copying firmware from system, as '${TARGET_BUILD_DIR}/lib/firmware' already exists."
fi
+
+ # Try to fetch distro logo
+ if [ ! -s "$TARGET_BUILD_DIR/etc/distro.png" ]; then
+ local DIST=$(lsb_release -a | grep ^Distributor)
+ DIST="${DIST#*:}"
+ pinfo "Distribution is $DIST"
+ if [ -n "$DIST" ]; then
+ wget -O "$TARGET_BUILD_DIR/etc/distro.png" "http://132.230.8.113/distro_logo.php?distro=$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
+
copy_kernel
}