diff options
| author | Jonathan Bauer | 2013-06-27 18:21:55 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2013-06-27 18:21:55 +0200 |
| commit | f0d2b69a3d596a72d0451c58d4e31b7603e017fb (patch) | |
| tree | 9f57bbe81a49ea81811072117153e3a38a9ebeac /remote/rootfs | |
| parent | [pam] krb5 support for home (diff) | |
| parent | [rootfs-stage32] do not copy /dev/fb0, handled by mdev (diff) | |
| download | tm-scripts-f0d2b69a3d596a72d0451c58d4e31b7603e017fb.tar.gz tm-scripts-f0d2b69a3d596a72d0451c58d4e31b7603e017fb.tar.xz tm-scripts-f0d2b69a3d596a72d0451c58d4e31b7603e017fb.zip | |
Merge branch 'master' of git:openslx-ng/tm-scripts
Diffstat (limited to 'remote/rootfs')
| -rw-r--r-- | remote/rootfs/rootfs-stage32/rootfs-stage32.build | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.build b/remote/rootfs/rootfs-stage32/rootfs-stage32.build index 4e16996b..d3cddcd9 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.build +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.build @@ -66,7 +66,7 @@ post_copy() { mkdir -p "${TARGET_BUILD_DIR}"/var/log/openslx # copy devices from running system - cp -a /dev/{console,kmsg,mem,null,shm,tty,tty0,tty1,tty9,fb0,urandom,zero} \ + cp -a /dev/{console,kmsg,mem,null,shm,tty,tty0,tty1,tty9,urandom,zero} \ "${TARGET_BUILD_DIR}"/dev || perror "Copying devices from running system failed." # set /etc/environment to include /opt/openslx/bin and /opt/openslx/sbin @@ -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 } |
