X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot;h=d59c77b07e601a8b72368046ab88da2ca63bd82d;hp=8eba963ffb4b6ffe526a6a70fcb8d32a94799a1f;hb=89be88928d14509b83fd9862a2f1a74aee9c9caa;hpb=173d53d88230d3ca786ac2908bfdafcc5a50f555 diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index 8eba963..d59c77b 100755 --- a/etc/grml/fai/grml/grml_cleanup_chroot +++ b/etc/grml/fai/grml/grml_cleanup_chroot @@ -52,7 +52,7 @@ einfo "Setting up /etc/inittab" cp /etc/inittab.grml /etc/inittab eend $? -if [ "$(dpkg --list | awk '/^rc/ { print $2}')" != '' ] ; +if [ "$(dpkg --list | awk '/^rc/ { print $2}')" != '' ] ; then einfo "Purging removed packages" dpkg --purge $(dpkg --list | awk '/^rc/ { print $2}') eend $? @@ -242,7 +242,6 @@ einfo "Cleaning and removing some misc files and directories" /var/lib/games /var/cache/man \ /var/lib/nfs /var/lib/xkb \ /var/mail/grml /var/account/pacct - mkdir -p /etc/sysconfig/network-scripts /etc/sysconfig/provider # Recreate empty utmp and wtmp :>/var/run/utmp :>/var/run/wtmp @@ -303,6 +302,12 @@ else ewarn "clamav[-freshclam] not installed" ; eend 0 fi +if [ -f /etc/default/snort.dpkg-dist -a -f /etc/default/snort ] ; then + einfo "Fixxing /etc/default/snort" + mv /etc/default/snort.dpkg-dist /etc/default/snort + eend $? +fi + if ! [ -r /etc/ld.so.nohwcap ] ; then einfo "Creating /etc/ld.so.nohwcap" touch /etc/ld.so.nohwcap