[Fai-commit] r5637 - in trunk: bin debian

Thomas Lange lange at alioth.debian.org
Sun Nov 1 21:36:25 UTC 2009


Author: lange
Date: 2009-11-01 21:36:25 +0000 (Sun, 01 Nov 2009)
New Revision: 5637

Modified:
   trunk/bin/fai-do-scripts
   trunk/debian/changelog
Log:
  follow symlinks when determine the file type

Modified: trunk/bin/fai-do-scripts
===================================================================
--- trunk/bin/fai-do-scripts	2009-11-01 15:23:26 UTC (rev 5636)
+++ trunk/bin/fai-do-scripts	2009-11-01 21:36:25 UTC (rev 5637)
@@ -26,7 +26,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 #*********************************************************************
 
-version="version 1.7, 29-oct-2009"
+version="version 1.7.1, 1-nov-2009"
 
 # variables needed: $classes, $cfclasses, $LOGDIR
 # 
@@ -91,7 +91,7 @@
     esac
 
     name=${file##*/}  # basename function
-    filetype=$(file -b $file)
+    filetype=$(file -bL $file)
 
     if [ "$fake" ]; then
 	echo "Executing $filetype"

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2009-11-01 15:23:26 UTC (rev 5636)
+++ trunk/debian/changelog	2009-11-01 21:36:25 UTC (rev 5637)
@@ -102,6 +102,7 @@
     with bash functions
   * fai-do-scripts: remove warning about scripts with prefix S
     save maximal exit code now works
+    follow symlinks when determine the file type
   * dhcpd.conf: change path of pxelinux.0
   * get-config-dir, get-config-dir-file: print more info, print warning if
     no method is defined




More information about the Fai-commit mailing list