touch ~/.zshrc
eend $?
-if [ -r /usr/share/lintian/overrides/ion3 ] ; then
- einfo "Stripping ion3-stuff"
- cat /usr/share/lintian/overrides/ion3 | sed 's#.*./usr#/usr#' | \
- sed 's/.comment//' | xargs strip --strip-unneeded ; eend $?
-else
- ewarn "ion3 not installed" ; eend 0
-fi
-
if [ -d /usr/lib/valgrind/x86-linux/ ] ; then
einfo "Stripping /usr/lib/valgrind/x86-linux/"
strip --strip-unneeded /usr/lib/valgrind/x86-linux/*
ewarn "localepurg not available" ; eend 0
fi
-if [ -d /var/lib/backuppc/pc/localhost/ ] ; then
- einfo "Cleaning /var/lib/backuppc/pc/localhost/"
- rm -rf /var/lib/backuppc/pc/localhost/* ; eend $?
-else
- ewarn "backuppc not installed" ; eend 0
-fi
-
# find /var -name \*.pid
einfo "Removing pid-files"
find /var/run -name \*.pid -exec rm {} \;
fi
einfo "Cleaning and removing some misc files and directories"
+ find /etc -type f -name *.pre_fcopy -delete
rm -f /etc/sysconfig/* /etc/motd.dpkg-new /etc/auto.master.distrib.dpkg-new \
/etc/samba/*.SID /etc/samba/*.tdb /dev/mouse* /dev/cdrom* /dev/cdwriter* \
/var/run/*/* /var/run/* /var/log/ksymoops/* /var/lock/*/* /var/lock/* \
/var/state/*/* /var/state/* /var/log/nessus/* \
/halt /reboot /ash.static /etc/dhcpc/*.info /etc/dhcpc/resolv* \
/etc/*passwd- /etc/*shadow- /etc/*group- /var/spool/postfix/maildrop/* \
+ /etc/*.old /etc/*.original \
/etc/lvm/.cache /etc/lvm/cache/.cache /etc/lvm/backup/main 2>/dev/null
rm -rf /tmp/* /var/tmp/* /var/tmp/.* /var/backups/* /.ssh /root/.ssh /home/*/.ssh \
/home/grml/* /home/grml/.??* /var/lib/texmf/ls-R /var/spool/texmf/ls-R \
# installation of resolvconf in chroot *with* /proc
# is different from an installation without /proc,
-# so make sure it is OK in any case; don't use /dev/shm
+# so make sure it is OK in any case
if [ -d /etc/resolvconf ] ; then
- rm -rf /etc/resolvconf/run
- mkdir /etc/resolvconf/run
+ if [ -L /etc/resolvconf/run ] ; then # resolvconf with /run
+ # /etc/resolvconf/run symlinks to /run/resolvconf
+ rm -rf /run/resolvconf
+ mkdir -p /run/resolvconf
+ else # no /run present
+ rm -rf /etc/resolvconf/run
+ mkdir /etc/resolvconf/run
+ fi
+
touch /etc/resolvconf/run/enable-updates
mkdir /etc/resolvconf/run/interface
cat > /etc/resolvconf/run/resolv.conf << EOF