[Fai-commit] r3792 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Thu Aug 24 16:13:23 UTC 2006


Author: lange
Date: 2006-08-24 16:13:23 +0000 (Thu, 24 Aug 2006)
New Revision: 3792

Modified:
   trunk/lib/subroutines-linux
Log:
call some commands only during full installation


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2006-08-24 16:12:19 UTC (rev 3791)
+++ trunk/lib/subroutines-linux	2006-08-24 16:13:23 UTC (rev 3792)
@@ -199,15 +199,17 @@
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 task_finish() {
 
-    # show some local information
-    ifconfig; df
-    # umount swap space
-    swapoff -a
+    if [ $DO_INIT_TASKS -eq 1 ] ; then
+	# show some local information
+	ifconfig; df
+	# umount swap space
+	swapoff -a
+    fi
     # undo fake of all programs made by fai
     fai-divert -R
     rm -f $FAI_ROOT/etc/apt/apt.conf.d/10fai $FAI_ROOT/etc/apt/apt.conf.d/90fai
     date
-    echo "The installation took $(cut -d . -f 1 /proc/uptime) seconds."
+    echo "The $FAI_ACTION took $[$(cut -d . -f 1 /proc/uptime)-$start_seconds] seconds."
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 task_chboot() {




More information about the Fai-commit mailing list