[Fai-commit] r6197 - trunk/examples/simple/scripts/DEBIAN

Thomas Lange lange at alioth.debian.org
Wed Nov 24 16:50:26 UTC 2010


Author: lange
Date: 2010-11-24 16:50:23 +0000 (Wed, 24 Nov 2010)
New Revision: 6197

Modified:
   trunk/examples/simple/scripts/DEBIAN/30-interface
Log:
do not copy file if target is a symlink


Modified: trunk/examples/simple/scripts/DEBIAN/30-interface
===================================================================
--- trunk/examples/simple/scripts/DEBIAN/30-interface	2010-11-23 20:04:57 UTC (rev 6196)
+++ trunk/examples/simple/scripts/DEBIAN/30-interface	2010-11-24 16:50:23 UTC (rev 6197)
@@ -22,7 +22,7 @@
 	  gateway $GATEWAYS
 EOF
     [ -n "$NETWORK" ] && echo "localnet $NETWORK" > $target/etc/networks
-    [ -s /etc/resolv.conf ] && cp -p /etc/resolv.conf $target/etc
+    [ -L $target/etc/resolv.conf ] || cp -p /etc/resolv.conf $target/etc
 fi
 
 # here fcopy is mostly used, when installing a client for running in a




More information about the Fai-commit mailing list