Fix snort setup
[grml-live.git] / etc / grml / fai / grml / grml_cleanup_chroot
index c678e57..d59c77b 100755 (executable)
@@ -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