From ed5805953edf772f90d20680bd045ff26ad66d3e Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Sun, 20 May 2012 23:46:03 +0200 Subject: reorder cleanup/ appdefault hooks --- config/chroot_local-hooks/04-cleanup | 9 --------- config/chroot_local-hooks/08-appdefaults | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100755 config/chroot_local-hooks/08-appdefaults diff --git a/config/chroot_local-hooks/04-cleanup b/config/chroot_local-hooks/04-cleanup index 985bee0..560cced 100755 --- a/config/chroot_local-hooks/04-cleanup +++ b/config/chroot_local-hooks/04-cleanup @@ -19,7 +19,6 @@ do : > ${FILE} done # custom cleanup -rm -f /var/lib/apt/lists/* || true rm -f /var/cache/apt/*.bin dpkg --clear-avail apt-cache gencaches @@ -27,11 +26,3 @@ update-pciids || true rm -f /usr/share/misc/pci.ids.* update-usbids || true rm -f /var/lib/usbutils/usb.ids.* -# Some application defaults -update-alternatives --set pager /usr/bin/most || true -update-alternatives --set x-window-manager /usr/bin/openbox || true -update-alternatives --set x-window-manager /usr/bin/kwin || true -update-alternatives --set x-www-browser /usr/bin/iceweasel || true -update-alternatives --set x-session-manager /usr/bin/startlxde || true -update-alternatives --set x-session-manager /usr/bin/startkde || true -update-alternatives --set editor /usr/bin/vim.basic || true diff --git a/config/chroot_local-hooks/08-appdefaults b/config/chroot_local-hooks/08-appdefaults new file mode 100755 index 0000000..268e6bd --- /dev/null +++ b/config/chroot_local-hooks/08-appdefaults @@ -0,0 +1,10 @@ +#!/bin/sh +# Some application defaults +update-alternatives --set pager /usr/bin/most || true +update-alternatives --set x-window-manager /usr/bin/openbox || true +update-alternatives --set x-window-manager /usr/bin/kwin || true +update-alternatives --set x-www-browser /usr/bin/iceweasel || true +update-alternatives --set x-session-manager /usr/bin/startlxde || true +update-alternatives --set x-session-manager /usr/bin/startkde || true +update-alternatives --set editor /usr/bin/vim.basic || true + -- cgit v1.0