From fe0eba24687044cfff5c308d2946685dd1adb5aa Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 28 Jun 2013 01:57:58 +0200 Subject: simplicity + elegance --- remote/rootfs/rootfs-stage32/rootfs-stage32.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.build b/remote/rootfs/rootfs-stage32/rootfs-stage32.build index bd018adc..73b1a894 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.build +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.build @@ -122,9 +122,7 @@ post_copy() { # 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" + local DIST=$(lsb_release -si) 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 -- cgit v1.2.3-55-g7522