diff options
author | Daniel Baumann <daniel@debian.org> | 2009-11-22 14:36:42 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2009-11-22 14:38:00 +0100 |
commit | a62f12110b19a52a58d7eae871012202cfa16055 (patch) | |
tree | 0bd188079c808ee8956fb5304c46ce8266b49f75 /hooks | |
download | vyos-live-build-a62f12110b19a52a58d7eae871012202cfa16055.tar.gz vyos-live-build-a62f12110b19a52a58d7eae871012202cfa16055.zip |
Renaming categories to archive areas (Closes: #519690).
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/kde-desktop | 14 | ||||
-rwxr-xr-x | hooks/minimal | 32 | ||||
-rwxr-xr-x | hooks/stripped | 42 |
3 files changed, 88 insertions, 0 deletions
diff --git a/hooks/kde-desktop b/hooks/kde-desktop new file mode 100755 index 000000000..3dc4d242c --- /dev/null +++ b/hooks/kde-desktop @@ -0,0 +1,14 @@ +#!/bin/sh + +# /usr/share/live-helper/hooks/kde-desktop - hook list for live-helper(7) +# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org> +# +# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +# This is free software, and you are welcome to redistribute it +# under certain conditions; see COPYING for details. + +set -e + +apt-get remove --purge --yes gdm +update-alternatives --set x-session-manager /usr/bin/startkde +dpkg-reconfigure kdm diff --git a/hooks/minimal b/hooks/minimal new file mode 100755 index 000000000..4a6f1b4b7 --- /dev/null +++ b/hooks/minimal @@ -0,0 +1,32 @@ +#!/bin/sh + +# /usr/share/live-helper/hooks/minimal - hook list for live-helper(7) +# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org> +# +# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +# This is free software, and you are welcome to redistribute it +# under certain conditions; see COPYING for details. + +set -e + +# Removing unused packages +for PACKAGE in apt-utils aptitude man-db manpages info wget +do + if ! apt-get remove --purge --yes "${PACKAGE}" + then + echo "WARNING: ${PACKAGE} isn't installed" + fi +done + +apt-get autoremove --yes || true + +# Removing unused files +find . -name *~ -print0 | xargs -0 rm -f + +rm -rf /var/cache/man/* + +# Truncating logs +for FILE in $(find /var/log/ -type f) +do + : > ${FILE} +done diff --git a/hooks/stripped b/hooks/stripped new file mode 100755 index 000000000..826c0e7ac --- /dev/null +++ b/hooks/stripped @@ -0,0 +1,42 @@ +#!/bin/sh + +# /usr/share/live-helper/hooks/stripped - hook list for live-helper(7) +# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org> +# +# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +# This is free software, and you are welcome to redistribute it +# under certain conditions; see COPYING for details. + +set -e + +# Removing unused packages +for PACKAGE in apt-utils aptitude man-db manpages info wget dselect +do + if ! apt-get remove --purge --yes "${PACKAGE}" + then + echo "WARNING: ${PACKAGE} isn't installed" + fi +done + +apt-get autoremove --yes || true + +# Removing unused files +find . -name *~ | xargs rm -f + +rm -rf /usr/include/* +#rm -rf /usr/share/groff/* +rm -rf /usr/share/doc/* +rm -rf /usr/share/locale/* +rm -rf /usr/share/man/* +rm -rf /usr/share/i18n/* +rm -rf /usr/share/info/* +rm -rf /usr/share/lintian/* +rm -rf /usr/share/linda/* +rm -rf /usr/share/zoneinfo/* +rm -rf /var/cache/man/* + +# Truncating logs +for FILE in $(find /var/log/ -type f) +do + : > ${FILE} +done |