summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot
blob: 0c229d2203e5b913b470bbbdf03b4c1503b61ff8 (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/sbin/lightdm ]; 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