summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot')
-rwxr-xr-xconfig/chroot_local-hooks/01-remove-gnome-icon-cache.chroot13
1 files changed, 8 insertions, 5 deletions
diff --git a/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot b/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot
index 6aae943..1de9a67 100755
--- a/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot
+++ b/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot
@@ -1,11 +1,14 @@
#!/bin/sh
if [ -x /usr/sbin/lightdm ]; then
-set -e
+ # only on i386
+ if ! [ -d /lib/x86_64-linux-gnu ]; then
+ set -e
-# Remove GNOME icon cache.
-# has to be generated later
-# This saves space some space (11MB on K-LXDE)
+ # Remove GNOME icon cache.
+ # has to be generated later
+ # This saves space some space (11MB on K-LXDE)
-rm -f /usr/share/icons/*/icon-theme.cache
+ rm -f /usr/share/icons/*/icon-theme.cache
+ fi
fi