summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot
blob: 45190dd442baf4952b2dfcff3d647ce407da6ead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

# wheezy live-build deletes this by default on all platforms
# the hook is removed in upcoming lb-versions
# so i keep it here

if [ -x /usr/bin/lxde-logout ]; then
    # only on i386
    if ! [ -d /lib/x86_64-linux-gnu ]; then

    # Remove icon caches
    # has to be generated later
    # This saves some space (11MB on Kanotix-LXDE)

    rm -f /usr/share/icons/*/icon-theme.cache
    fi
fi