[Fai-commit] r3688 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Thu Jul 27 12:38:13 UTC 2006


Author: lange
Date: 2006-07-27 12:38:09 +0000 (Thu, 27 Jul 2006)
New Revision: 3688

Modified:
   trunk/lib/subroutines-linux
Log:
replace $FAI_REMOTESH with $remotesh, make it a local variable


Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux	2006-07-27 11:01:11 UTC (rev 3687)
+++ trunk/lib/subroutines-linux	2006-07-27 12:38:09 UTC (rev 3688)
@@ -220,13 +220,14 @@
     local doexit=0
     local hostname=$(hostname)
     local ipaddr=$(grep IPADDR $LOGDIR/boot.log | cut -d\' -f2)
+    local remotesh
 
     case "$FAI_LOGPROTO" in
-	ftp) export FAI_REMOTESH=ssh ;;
-	ssh) export FAI_REMOTESH=ssh ;;
-	rsh) export FAI_REMOTESH=rsh ;;
+	ftp) remotesh=ssh ;;
+	ssh) remotesh=ssh ;;
+	rsh) remotesh=rsh ;;
     esac
-    frsh="$FAI_REMOTESH -l $LOGUSER ${SERVER}"
+    frsh="$remotesh -l $LOGUSER ${SERVER}"
 
     if [ -z "$SERVER" ] ; then
 	echo "SERVER not defined. Can't change network boot configuration"




More information about the Fai-commit mailing list