summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2013-09-04 12:32:15 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2013-09-06 20:15:00 +0200
commit648ffc002c258e07b2720b8045ac6bb401d58470 (patch)
tree18472f8084d87f608164a46248fdc30a0a27cc50 /config/chroot_local-hooks
parent2c7aaed1b4fc1c23acfce2e40fd03faa5c4b9b7f (diff)
downloadkanotix-648ffc002c258e07b2720b8045ac6bb401d58470.zip
kanotix-648ffc002c258e07b2720b8045ac6bb401d58470.tar.gz
keep vim pidgin aptitude, add libre-office on amd64 isos
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-xconfig/chroot_local-hooks/01-remove-gnome-icon-cache.chroot13
-rwxr-xr-xconfig/chroot_local-hooks/03-lxde-fixes5
2 files changed, 11 insertions, 7 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
diff --git a/config/chroot_local-hooks/03-lxde-fixes b/config/chroot_local-hooks/03-lxde-fixes
index c73f876..ac47bc0 100755
--- a/config/chroot_local-hooks/03-lxde-fixes
+++ b/config/chroot_local-hooks/03-lxde-fixes
@@ -14,8 +14,9 @@ if [ -x /usr/sbin/lightdm ]; then
# Industrial conflicts
sed -i s/Industrial/Clearlooks-Phenix/ /etc/skel/.gtkrc-2.0
- # on lxde delete packages to reduce image-size
+ # on lxde i386 delete packages to reduce image-size
+ if ! [ -d /lib/x86_64-linux-gnu ]; then
apt-get purge --yes aptitude aptitude-common
apt-get purge --yes vim vim-common vim-runtime
-
+ fi
fi