Remove FAI files on bailout
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 96-apt-listbugs
index 5aabce6..01dbfd2 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Nov 04 01:42:58 CET 2007 [mika]
+# Latest change: Sun Nov 04 11:08:40 CET 2007 [mika]
 ################################################################################
 
 set -e
@@ -16,7 +16,11 @@ if ifclass RELEASE ; then
   [ -n "$HOSTNAME" ] || HOSTNAME=grml
 
   if [ -r /etc/resolv.conf ] ; then
-     cat /etc/resolv.conf >> $target/etc/resolv.conf
+     if [ -r /etc/resolvconf/run/resolv.conf ] ; then
+        cat /etc/resolv.conf >> $target/etc/resolvconf/run/resolv.conf
+     else
+        cat /etc/resolv.conf >> $target/etc/resolv.conf
+     fi
   fi
 
   if [ -x $target/usr/sbin/apt-listbugs -a -x $target/usr/bin/apt-show-source ] && \