2 # Filename: /etc/grml/fai/grml/grml_cleanup_chroot.small
3 # Purpose: clean up grml chroot (adjusted for grml-small)
4 # Authors: (c) Michael Prokop <mika@grml.org>
5 # License: This file is licensed under the GPL v2.
6 # Latest change: Mon Sep 17 17:34:47 CEST 2007 [mika]
7 ################################################################################
11 [ -n "$NOCOLORS" ] || . /etc/grml_colors
12 . /etc/grml/lsb-functions || exit 6
14 einfo "Setting up /etc/inittab"
15 cp /etc/inittab.small /etc/inittab
18 einfo "Copying original runlevel.conf to /etc/runlevel.conf"
19 cp /etc/runlevel.conf.livecd.small /etc/runlevel.conf
22 if [ -n "$REMOVE_DOCS" ] ; then
23 # einfo "Cleaning up /etc/skel..."
24 # rm -rf /etc/skel/.fluxbox
25 # rm -rf /etc/skel/.gkrellm2
26 # rm -rf /etc/skel/.idesktop
27 # rm -rf /etc/skel/.pekwm
30 einfo "Cleaning documentation directories..."
31 if [ -d /usr/share/doc/grml-docs ] ; then
32 mv /usr/share/doc/grml-docs /tmp/
38 if [ -d /tmp/grml-docs ] ; then
39 mv /tmp/grml-docs /usr/share/doc/grml-docs
42 rm -rf /usr/share/gtk-doc/
43 rm -rf /usr/share/man/
45 rm -rf /usr/share/info
48 einfo "Creating /usr/share/info/..."
49 mkdir -p /usr/share/info/
53 ## END OF FILE #################################################################