diff options
author | Simon Rettberg | 2013-06-27 17:54:32 +0200 |
---|---|---|
committer | Simon Rettberg | 2013-06-27 17:54:32 +0200 |
commit | 436dbce388e4f24d7c64079881b1bf021dfc75b5 (patch) | |
tree | 595bba68a7687630c527dfca3c07b7b6aff05df4 /remote/rootfs | |
parent | whoopsie... fix scaling of logo (diff) | |
download | tm-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.build | 17 |
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 } |