Index: /nutchez-0.2/src/test/install
===================================================================
--- /nutchez-0.2/src/test/install	(revision 162)
+++ /nutchez-0.2/src/test/install	(revision 163)
@@ -47,3 +47,5 @@
 }
 
+# todo: 處理/etc/hosts
+# 多張網卡時的bug
 main
Index: /nutchez-0.2/src/test/install_func.sh
===================================================================
--- /nutchez-0.2/src/test/install_func.sh	(revision 162)
+++ /nutchez-0.2/src/test/install_func.sh	(revision 163)
@@ -25,7 +25,7 @@
 Index_DB=$User_HOME/search
 Admin_email=nutchuser@nutch
-
-# $MasterIP_Address
-# $net_MacAddr
+Start_PATH=`pwd`
+MasterIP_Address=`/sbin/ifconfig eth0 | grep 'inet addr' |  sed 's/^.*addr://g' | sed 's/Bcast.*$//g' | sed 's/ .*// '` 
+net_MacAddr=`/sbin/ifconfig eth0 | grep 'HW' | sed 's/^.*HWaddr //g'`
 
 ######function section section#######
@@ -73,6 +73,6 @@
     net_address=$(ifconfig $net_interfaces | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1)
     net_MacAddr=$(ifconfig $net_interfaces | grep 'HW' | sed 's/^.*HWaddr //g')
-    echo "net_address is $net_address"
-    echo "net_MacAddr is $net_MacAddr"
+    #echo "net_address is $net_address"
+    #echo "net_MacAddr is $net_MacAddr"
 
   # 若有多個 eth 時
@@ -94,5 +94,5 @@
     echo "Your choice is $net_choice"
     net_interface=$(echo $net_interfaces | cut -d " " -f $net_choice)
-    ifconfig $net_interface | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1
+    #ifconfig $net_interface | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1
     net_address=$(ifconfig $net_interface | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1)
     net_MacAddr=$(ifconfig $net_interfaces | grep 'HW' | sed 's/^.*HWaddr //g')
@@ -105,4 +105,5 @@
 function show_info () {
   echo "The Master IP Address is $MasterIP_Address"
+  echo "The Master MacAddr is $net_MacAddr"
 }
 
@@ -179,4 +180,5 @@
 
 function client_PassMasterIPAddr () {
+  cd $Start_PATH
   Line_NO=`cat client_install | grep -n '# Master IP here' | sed 's/:.*//g'`
   debug_echo "debug...Master IP here line number = $Line_NO..."
@@ -187,5 +189,7 @@
 }
 
+
 function client_PassMaster_Hostname () {
+  cd $Start_PATH
   Line_NO=`cat client_install | grep -n '# Master Hostname here' | sed 's/:.*//g'`
   debug_echo "debug...Master hostname here line number = $Line_NO..."
@@ -195,4 +199,5 @@
   debug_echo "edit client_install done..."
 }
+
 
 function make_client_install () {
@@ -210,5 +215,5 @@
   # 複製檔案至$User_HOME/source目錄下
   mv NutchezForClientOf_$Master_IP_Address.tar.gz /home/nutchuser/nutchez/source
-  cp client_install client_install_func.sh /home/nutchuser/nutchez/source
+  cp $Start_PATH/client_install $Start_PATH/client_install_func.sh /home/nutchuser/nutchez/source
 }
 
@@ -223,9 +228,9 @@
 # client簡易步驟
 function client_install_command () {
-  debug_echo "Client Install Command as Follows:"
-  debug_echo "cd ~"
-  debug_echo "mkdir nutchez_client_install"
-  debug_echo "cd nutchez_client_install"
-  debug_echo "scp nutchuser@masterIP:/home/nutchuser/nutchez/source/* ."
-  debug_echo "./client_install"
-}
+  echo "Client Install Command as Follows:"
+  echo "cd ~"
+  echo "mkdir nutchez_client_install"
+  echo "cd nutchez_client_install"
+  echo "scp nutchuser@masterIP:/home/nutchuser/nutchez/source/* ."
+  echo "./client_install"
+}
