[Fai-commit] r3392 - trunk/lib

fai-repository at svn.debian.org fai-repository at svn.debian.org
Sun Apr 9 13:40:19 UTC 2006


Author: lange
Date: 2006-04-09 13:40:18 +0000 (Sun, 09 Apr 2006)
New Revision: 3392

Modified:
   trunk/lib/subroutines
Log:
only move of code, no changes


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2006-04-09 12:38:27 UTC (rev 3391)
+++ trunk/lib/subroutines	2006-04-09 13:40:18 UTC (rev 3392)
@@ -221,16 +221,15 @@
 
     # source user specific subroutines
     [ -f $FAI/hooks/subroutines ] && . $FAI/hooks/subroutines
-    if [ $DO_INIT_TASKS -eq 1 ]; then
-        # set the system time and date using rdate or/and ntpdate
-        [ "$TIMESRVS_1" ] && rdate $TIMESRVS_1
-        [ "$NTPSRVS_1" ]  && ntpdate -b -v $NTPSRVS
-    fi
 
     define_fai_flags
     DNSDOMAIN=$DOMAIN     # cfengine 1.5.3 can't use $DOMAIN
 
+    # this may be moved to an external script
     if [ $DO_INIT_TASKS -eq 1 ] ; then
+        # set the system time and date using rdate or/and ntpdate
+        [ "$TIMESRVS_1" ] && rdate $TIMESRVS_1
+        [ "$NTPSRVS_1" ]  && ntpdate -b -v $NTPSRVS
         [ "$createvt" ] && {
 	    # create two virtual terminals; acces via alt-F2 and alt-F3
 	    echo "Press ctrl-c to interrupt FAI and to get a shell"




More information about the Fai-commit mailing list